From dfe3b75a5b0345c82b975c021ec8ba3bf753a497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Mon, 4 Dec 2006 09:54:09 +0000 Subject: [PATCH] * New desktop-background-bitmap alternative with only bitmap based backgrounds (PNG, JPEG, ...) for KDE 3 which doen't support SVG backgrounds; use the new background symlink as the default KDE wallpaper in kdesktoprc. --- debian/changelog | 6 +++++- debian/postinst | 16 +++++++++++++++- debian/prerm | 10 +++++++++- profiles/kde/share/config/kdesktoprc | 2 +- 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index c29fa74..1f3ee78 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,8 +8,12 @@ desktop-base (0.3.21) UNRELEASED; urgency=low [ Loic Minier ] * Drop uploaders rule and gnome-pkg-tools build-dep. + * New desktop-background-bitmap alternative with only bitmap based + backgrounds (PNG, JPEG, ...) for KDE 3 which doen't support SVG + backgrounds; use the new background symlink as the default KDE wallpaper + in kdesktoprc. - -- Loic Minier Sun, 3 Dec 2006 10:49:46 +0100 + -- Loic Minier Mon, 4 Dec 2006 10:53:32 +0100 desktop-base (0.3.20) unstable; urgency=high diff --git a/debian/postinst b/debian/postinst index 633b35c..1ea4eea 100644 --- a/debian/postinst +++ b/debian/postinst @@ -11,7 +11,7 @@ if [ "${1}" = "configure" ] && [ "$2" != "" ] ; then fi if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then - # Alternatives for the background + # Alternatives for the background (both in vector and bitmap formats) update-alternatives --install \ /usr/share/images/desktop-base/desktop-background \ desktop-background \ @@ -37,6 +37,20 @@ if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then desktop-background \ /usr/share/images/desktop-base/Debian.jpg 10 + # Alternatives for the background (bitmaps only) + update-alternatives --install \ + /usr/share/images/desktop-base/desktop-background-bitmap \ + desktop-background-bitmap \ + /usr/share/images/desktop-base/debblue-1600x1200.png 30 + update-alternatives --install \ + /usr/share/images/desktop-base/desktop-background-bitmap \ + desktop-background-bitmap \ + /usr/share/images/desktop-base/bluedeb-1024x768.jpg 10 + update-alternatives --install \ + /usr/share/images/desktop-base/desktop-background-bitmap \ + desktop-background-bitmap \ + /usr/share/images/desktop-base/Debian.jpg 10 + # Alternatives for the splash update-alternatives --install \ /usr/share/images/desktop-base/desktop-splash \ diff --git a/debian/prerm b/debian/prerm index b58f449..262f1a3 100644 --- a/debian/prerm +++ b/debian/prerm @@ -3,7 +3,7 @@ #DEBHELPER# if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then - # remove background alternatives + # remove background alternatives (both in vector and bitmap formats) update-alternatives --remove desktop-background \ /usr/share/images/desktop-base/debian-blueish-wallpaper.svg @@ -19,6 +19,14 @@ if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then update-alternatives --remove desktop-background \ /usr/share/images/desktop-base/Debian.jpg + # remove background alternatives (bitmaps only) + update-alternatives --remove desktop-background-bitmap \ + /usr/share/images/desktop-base/debblue-1600x1200.png + update-alternatives --remove desktop-background-bitmap \ + /usr/share/images/desktop-base/bluedeb-1024x768.jpg + update-alternatives --remove desktop-background-bitmap \ + /usr/share/images/desktop-base/Debian.jpg + # remove splash alternatives update-alternatives --remove desktop-splash \ /usr/share/images/desktop-base/gnome-splash-curves.png diff --git a/profiles/kde/share/config/kdesktoprc b/profiles/kde/share/config/kdesktoprc index 44313f4..9a03898 100644 --- a/profiles/kde/share/config/kdesktoprc +++ b/profiles/kde/share/config/kdesktoprc @@ -13,6 +13,6 @@ Pattern= Program= ReverseBlending=false UseSHM=false -Wallpaper=/usr/share/images/desktop-base/desktop-background +Wallpaper=/usr/share/images/desktop-base/desktop-background-bitmap WallpaperList= WallpaperMode=Scaled