summaryrefslogtreecommitdiff
path: root/scripts/live-bottom
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-03-25 09:24:27 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:47:58 +0100
commite040db35bc4ea7a104c462442e8aac60a1121683 (patch)
tree4f446d9560af6f35e66a3c2593e88a611cf4cce0 /scripts/live-bottom
parent8d2f581c2fa170a7e573a2c2d9adbcd1a7df5e33 (diff)
downloadlive-boot-e040db35bc4ea7a104c462442e8aac60a1121683.tar.gz
live-boot-e040db35bc4ea7a104c462442e8aac60a1121683.zip
Merging casper 1.125.
Diffstat (limited to 'scripts/live-bottom')
-rwxr-xr-xscripts/live-bottom/15autologin7
-rwxr-xr-xscripts/live-bottom/35fix_language_selector2
2 files changed, 8 insertions, 1 deletions
diff --git a/scripts/live-bottom/15autologin b/scripts/live-bottom/15autologin
index 10cae2d..2c880b7 100755
--- a/scripts/live-bottom/15autologin
+++ b/scripts/live-bottom/15autologin
@@ -71,6 +71,13 @@ then
-e "s/^#?AutoLoginUser=.*\$/AutoLoginUser=${USERNAME}/" \
-e "s/^#?AutoReLogin=.*\$/AutoReLogin=true/" \
/root/etc/kde3/kdm/kdmrc
+elif [ -f /root/usr/lib/kde4/etc/kde4/kdm/kdmrc ]
+then
+ # Configure KDM-KDE4 autologin
+ sed -i -r -e "s/^#?AutoLoginEnable=.*\$/AutoLoginEnable=true/" \
+ -e "s/^#?AutoLoginUser=.*\$/AutoLoginUser=$USERNAME/" \
+ -e "s/^#?AutoReLogin=.*\$/AutoReLogin=true/" \
+ /root/usr/lib/kde4/etc/kde4/kdm/kdmrc
fi
log_end_msg
diff --git a/scripts/live-bottom/35fix_language_selector b/scripts/live-bottom/35fix_language_selector
index 126a5b2..70495c4 100755
--- a/scripts/live-bottom/35fix_language_selector
+++ b/scripts/live-bottom/35fix_language_selector
@@ -33,7 +33,7 @@ log_begin_msg "Fixing language selector..."
if [ -e /root/usr/share/applications/language-selector.desktop ]
then
- sed -i '/^Exec/ s|/usr/bin/gnome-language-selector|"& -n"|' /root/usr/share/applications/language-selector.desktop
+ sed -i '/^Exec/ s|/usr/bin/gnome-language-selector|& -n|' /root/usr/share/applications/language-selector.desktop
fi
if [ -x /root/usr/bin/fontconfig-voodoo ]