* Remove the GDM3 settings, since the configuration format for GDM change again, yay. * Add a dconf file for the new-style GDM3 configuration. * Add a XML file describing the available resolutions for the background (for use with GNOME). * postinst: use a higher priority for the 1920x1080 background. * Cleanup postinst/prerm/postrm. * Add a new alternative: desktop-background.xml. * Use it from the gsettings override. * Reload gdm3 after installation/removal. * Drop old libgnome2-common hack. * Clean up an alternative that is no longer available.
44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
#!/bin/sh -e
|
|
set -e
|
|
|
|
#DEBHELPER#
|
|
|
|
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
|
|
# remove background alternatives
|
|
for background in \
|
|
joy-wallpaper_1600x1200.svg \
|
|
joy-wallpaper_1600x1200.svg \
|
|
joy-wallpaper_1280x1024.svg \
|
|
joy-wallpaper_1920x1080.svg \
|
|
joy-wallpaper_1920x1200.svg \
|
|
joy-inksplat-wallpaper_1920x1080.svg \
|
|
spacefun-wallpaper.svg \
|
|
spacefun-wallpaper-widescreen.svg \
|
|
moreblue-orbit-wallpaper.svg \
|
|
moreblue-orbit-wallpaper-widescreen.svg \
|
|
nightly-wallpaper.png \
|
|
debian-blueish-wallpaper.svg \
|
|
; do
|
|
update-alternatives --remove desktop-background /usr/share/images/desktop-base/$background
|
|
done
|
|
update-alternatives --remove desktop-background.xml /usr/share/images/desktop-base/joy.xml
|
|
|
|
# remove splash alternatives
|
|
for splash in \
|
|
spacefun-splash.svg \
|
|
moreblue-orbit-splash.png \
|
|
gnome-splash-curves.png \
|
|
; do
|
|
update-alternatives --remove desktop-splash /usr/share/images/desktop-base/$splash
|
|
done
|
|
|
|
# remove grub alternatives
|
|
for background in \
|
|
joy-grub.png \
|
|
spacefun-grub.png \
|
|
spacefun-grub-widescreen.png \
|
|
; do
|
|
update-alternatives --remove desktop-grub /usr/share/images/desktop-base/$background
|
|
done
|
|
fi
|