[debian-edu-commits] debian-edu/ 65/437: * Avoid switching background image during login, by setting the KDM background image to the same as the KDM theme and KDE desktop background.

Mike Gabriel sunweaver at debian.org
Sun Mar 2 23:49:24 UTC 2014


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository debian-edu-artwork.

commit e27ce304b8f0978e7596c929ee900f9933c4847a
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Sun Sep 3 13:06:21 2006 +0000

      * Avoid switching background image during login, by setting the KDM
        background image to the same as the KDM theme and KDE desktop
        background.
---
 debian/changelog                   | 8 ++++++++
 debian/debian-edu-artwork.postinst | 6 ++++++
 debian/debian-edu-artwork.postrm   | 5 +++++
 3 files changed, 19 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index b091224..9255c0a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+debian-edu-artwork (0.0.8) UNRELEASED; urgency=low
+
+  * Avoid switching background image during login, by setting the KDM
+    background image to the same as the KDM theme and KDE desktop
+    background.
+
+ -- Petter Reinholdtsen <pere at debian.org>  Sun,  3 Sep 2006 14:39:43 +0200
+
 debian-edu-artwork (0.0.7) unstable; urgency=low
 
   * Remember to run autoreconf, to make sure kdesktoprc is installed
diff --git a/debian/debian-edu-artwork.postinst b/debian/debian-edu-artwork.postinst
index c2bec21..1ebe0cd 100644
--- a/debian/debian-edu-artwork.postinst
+++ b/debian/debian-edu-artwork.postinst
@@ -24,8 +24,14 @@ change_kdm_theme() {
 	# kdm package, and we are editing it in a package maintainer
 	# script.  Need to come up with a better way to do it.
 	# See also http://release.debian.org/etch_rc_policy.txt
+
+	# First update the KDM theme
 	/usr/bin/update-ini-file $kdmrc 'X-*-Greeter' UseTheme true
 	/usr/bin/update-ini-file $kdmrc 'X-*-Greeter' Theme /usr/share/apps/kdm/themes/debian-edu
+
+	# Next, update the background used after the KDM theme is
+	# removed and before kdesktop insert the selected background.
+	/usr/bin/update-ini-file /etc/kde3/kdm/backgroundrc 'Desktop0' Wallpaper debian-edu-wallpaper.png
     fi
 }
 
diff --git a/debian/debian-edu-artwork.postrm b/debian/debian-edu-artwork.postrm
index 2975fa4..95d98b3 100644
--- a/debian/debian-edu-artwork.postrm
+++ b/debian/debian-edu-artwork.postrm
@@ -13,6 +13,11 @@ restore_kdm_theme() {
         echo "Removing and disabling Debian Edu KDM theme ..."
 	/usr/bin/update-ini-file $kdmrc 'X-*-Greeter' UseTheme false
 	/usr/bin/update-ini-file $kdmrc 'X-*-Greeter' Theme $defaulttheme
+
+	bgrc=/etc/kde3/kdm/backgroundrc
+	if grep -q '^Wallpaper=debian-edu-wallpaper.png' $bgrc ; then
+	    /usr/bin/update-ini-file $bgrc 'Desktop0' Wallpaper debian-kde_default.png
+	fi
     else
         echo "KDM theme customised or not enabled, not touching kdmrc ..."
     fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-artwork.git



More information about the debian-edu-commits mailing list