blob: 8d87c609a362795cac4fd8c7c419d9df218743ba (
plain)
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
|
post_install() {
# Change default wallpaper
dbus-launch gsettings set org.gnome.desktop.background picture-uri file:///usr/share/parabola/artwork/stripes.png
dbus-launch gsettings set org.gnome.desktop.background picture-options zoom
# Change default lock screen wallpaper.
dbus-launch gsettings set org.gnome.desktop.screensaver picture-uri file:///usr/share/parabola/artwork/stripes-desaturated.png
dbus-launch gsettings set org.gnome.desktop.screensaver picture-options zoom
}
post_upgrade() {
post_install $1
}
post_remove() {
# Reset default wallpaper to default for GNOME (if the user didn't choose some other).
if [ $(dbus-launch gsettings get org.gnome.desktop.background picture-uri) == "file:///usr/share/parabola/artwork/stripes.png" ]
then
dbus-launch gsettings reset org.gnome.desktop.background picture-uri
dbus-launch gsettings reset org.gnome.desktop.background picture-options
fi
# Reset default lock screen wallpaper to default for GNOME (if the user didn't choose some other).
if [ $(dbus-launch gsettings get org.gnome.desktop.screensaver picture-uri) == "file:///usr/share/parabola/artwork/stripes.png" ]
then
dbus-launch gsettings reset org.gnome.desktop.screensaver picture-uri
dbus-launch gsettings reset org.gnome.desktop.screensaver picture-options
fi
}
|