From 10ad164219e7000bd559f8842c68f3c23e04ca39 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 25 Aug 2011 19:12:31 -0500 Subject: Fix kdm's nasty habit of overwriting the default display manager under Ubuntu and Debian --- debian/lenny/kdebase/debian/kdm-trinity.postinst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'debian/lenny') diff --git a/debian/lenny/kdebase/debian/kdm-trinity.postinst b/debian/lenny/kdebase/debian/kdm-trinity.postinst index 8c879be02..c787b37a3 100644 --- a/debian/lenny/kdebase/debian/kdm-trinity.postinst +++ b/debian/lenny/kdebase/debian/kdm-trinity.postinst @@ -9,6 +9,10 @@ set -e # does not exist DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager +if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" ]; then + cp -Rp "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" "$DEFAULT_DISPLAY_MANAGER_FILE" +fi + if [ ! -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then DEFAULT_DISPLAY_MANAGER=kdm-trinity if db_get shared/default-x-display-manager; then -- cgit v1.2.1