Files
desktop-base/debian/postinst
T
Yves-Alexis Perez ca61010655 * Initial support for Lines theme by Juliette Belin.
- add the various ratio SVG wallpapers to backgrounds/ 
  - debian/{postinst,prerm}: update alternatives priority to make Lines the
    automatic/default one
  - gdm3/background.svg updated to use Lines login screen
  - grub/lines-grub.png added.
  - Makefile: install lines-grub grub background.
2014-10-11 13:08:46 +00:00

88 lines
2.5 KiB
Bash

#!/bin/bash -e
set -e
#DEBHELPER#
if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
dpkg-maintscript-helper rm_conffile /etc/kde3/kdeglobals 6.0.1 -- "$@"
fi
if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl 7; then
update-alternatives --remove desktop-grub /usr/share/images/desktop-base/moreblue-orbit-grub.png
fi
if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then
# Alternatives for the background
while read background priority; do
update-alternatives --install \
/usr/share/images/desktop-base/desktop-background \
desktop-background \
/usr/share/images/desktop-base/$background $priority
done << EOF
lines-wallpaper_1280_1024.svg 65
lines-wallpaper_1600_1200.svg 65
lines-wallpaper_1920x1080.svg 70
lines-wallpaper_1920x1200.svg 65
lines-wallpaper_2560x1080.svg 65
joy-wallpaper_1600x1200.svg 60
joy-wallpaper_1280x1024.svg 60
joy-wallpaper_1920x1080.svg 60
joy-wallpaper_1920x1200.svg 60
joy-inksplat-wallpaper_1920x1080.svg 60
spacefun-wallpaper.svg 50
spacefun-wallpaper-widescreen.svg 50
moreblue-orbit-wallpaper.svg 40
moreblue-orbit-wallpaper-widescreen.svg 40
nightly-wallpaper.png 40
debian-blueish-wallpaper.svg 30
EOF
# Set up an alternative for the XML version of the background
# (for GNOME)
update-alternatives --install \
/usr/share/images/desktop-base/desktop-background.xml \
desktop-background.xml \
/usr/share/images/desktop-base/joy.xml 10
# Alternatives for the splash
while read splash priority; do
update-alternatives --install \
/usr/share/images/desktop-base/desktop-splash \
desktop-splash \
/usr/share/images/desktop-base/$splash $priority
done << EOF
spacefun-splash.svg 50
moreblue-orbit-splash.png 40
gnome-splash-curves.png 30
EOF
# Alternatives for grub
while read background priority; do
update-alternatives --install \
/usr/share/images/desktop-base/desktop-grub.png \
desktop-grub \
/usr/share/images/desktop-base/$background $priority
done << EOF
lines-grub.png 20
joy-grub.png 15
spacefun-grub.png 15
spacefun-grub-widescreen.png 14
EOF
# GRUB background
if which update-grub2 > /dev/null ; then
sync
update-grub2 || true
fi
if [ -x /usr/sbin/update-initramfs ]; then
update-initramfs -u
fi
# Reload gdm3 configuration
if [ -x /usr/sbin/gdm3 ]; then
invoke-rc.d gdm3 reload || true
fi
fi