Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#!/bin/sh
set +e
# Migrate the profile if needed
[ -f ~/.config/profilemigrated ] || touch ~/.config/profilemigrated
if ! grep 6.0 -q ~/.config/profilemigrated ; then
# Reset Compiz
rm ~/.cache/compiz* ~/.compiz* ~/.config/compiz* -rf
for key in /apps/panel /apps/compiz /apps/compiz-1 /apps/compizconfig-1 /apps/compizconfig
do
gconftool --recursive-unset $key
done
# Update wallpaper if default is still used
if gsettings get org.gnome.desktop.background picture-uri |grep /usr/share/backgrounds/brigantia.jpg ; then
gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/toutatis.jpg'
fi
# Reset GNOME panel
cat << EOF | dconf load /org/gnome/gnome-panel/
[layout]
object-id-list=['menu-bar', 'home', 'abrowser', 'window-list', 'notification-area', 'indicators', 'clock', 'show-desktop']
toplevel-id-list=['panel']
[layout/objects/abrowser-0/instance-config]
location='file:///usr/share/applications/browser.desktop'
[layout/objects/abrowser-0]
object-iid='PanelInternalFactory::Launcher'
pack-index=20
toplevel-id='panel'
[layout/objects/abrowser/instance-config]
location='file:///usr/share/applications/browser.desktop'
[layout/objects/abrowser]
object-iid='PanelInternalFactory::Launcher'
pack-index=20
toplevel-id='panel'
[layout/objects/clock]
object-iid='ClockAppletFactory::ClockApplet'
pack-index=10
pack-type='end'
toplevel-id='panel'
[layout/objects/home/instance-config]
location='file:///usr/share/applications/home.desktop'
[layout/objects/home]
object-iid='PanelInternalFactory::Launcher'
pack-index=10
pack-type='start'
toplevel-id='panel'
[layout/objects/indicators]
object-iid='IndicatorAppletFactory::IndicatorApplet'
pack-index=20
pack-type='end'
toplevel-id='panel'
[layout/objects/menu-bar]
object-iid='PanelInternalFactory::MenuButton'
pack-index=0
pack-type='start'
toplevel-id='panel'
[layout/objects/notification-area]
object-iid='NotificationAreaAppletFactory::NotificationArea'
pack-index=30
pack-type='end'
toplevel-id='panel'
[layout/objects/show-desktop]
object-iid='WnckletFactory::ShowDesktopApplet'
pack-index=0
pack-type='end'
toplevel-id='panel'
[layout/objects/window-list]
object-iid='WnckletFactory::WindowListApplet'
pack-index=30
pack-type='start'
toplevel-id='panel'
[layout/toplevels/panel-0]
animation-speed='fast'
auto-hide=false
auto-hide-size=1
enable-arrows=true
enable-buttons=false
expand=true
hide-delay=300
monitor=0
orientation='bottom'
screen=0
size=44
unhide-delay=100
x=0
x-centered=false
x-right=-1
y=724
y-bottom=0
y-centered=false
[layout/toplevels/panel]
animation-speed='fast'
auto-hide=false
auto-hide-size=1
enable-arrows=true
enable-buttons=false
expand=true
hide-delay=300
monitor=0
orientation='bottom'
screen=0
size=44
unhide-delay=100
x=0
x-centered=false
x-right=-1
y=724
y-bottom=0
y-centered=false
EOF
fi
lsb_release -r -s > ~/.config/profilemigrated
WM=compiz
FALLBACK=openbox
which metacity && FALLBACK=metacity
which compiz || WM=$FALLBACK
grep access=v3 /proc/cmdline -q && WM=$FALLBACK
[ $(gsettings get org.gnome.desktop.a11y.applications screen-reader-enabled) = "true" ] && WM=$FALLBACK
# Ugly hack to fix a hard to catch race condition
if gconftool --get /apps/metacity/general/titlebar_font |grep -q Cantarell
then
if ! [ -f /usr/share/fonts/opentype/cantarell/Cantarell-Bold.otf ]
then
echo The gconf db seems corrupted, saving at ~/.gconf.broken and cleaning it up
cp -a ~/.gconf ~/.gconf.broken
gconftool --recursive-unset /
fi
fi
/usr/lib/gnome-session/gnome-session-check-accelerated && exec $WM || exec $FALLBACK