Package: kde-workspace Version: 4:4.7.4-2 Severity: wishlist Tags: patch Currently it's only possible to activate auto login with a configuration snippet in /etc/default/kdm.d but it's not possible to deactivate auto login in the same way. This would be convenient for a package I'm developing which is an addition to Debian Live to allow users to plug in their Debian Live system, have it automatically mounted as the home directory and then login into the system with their account. For this to work I would like to have a way to deactivate the autologin that was activated by live-config.
The attached patch implements this with a new variable AUTOLOGINENABLE but leaves the semantics as they are currently in the absence of this variable. Thanks for considering this patch. Gaudenz -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (800, 'testing'), (700, 'unstable'), (50, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
commit 83ea84a3b4894ac278bcb1bb5cb0268b5a437a9b Author: Gaudenz Steinlin <gaud...@debian.org> Date: Mon Apr 23 22:14:12 2012 +0200 Facility to disable Autologin with kdm.d files Enable setting AUTOLOGINENABLE="false" to disable auto login with a file in /etc/default/kdm.d. diff --git a/debian/kdm.init b/debian/kdm.init index 9475ed4..1312af7 100644 --- a/debian/kdm.init +++ b/debian/kdm.init @@ -86,10 +86,9 @@ setup_config () { sed -i "s|@@@ToBeReplacedByDesktopBase@@@|$DEFAULT_KDM_THEME|" ${KDMCFG} # autologin overrides are useful for live debian environment - if [ -n "$AUTOLOGINUSER" ]; then - sed -i "s|^#\?AutoLoginEnable=.*|AutoLoginEnable=true|" $KDMCFG - sed -i "s|^#\?AutoLoginUser=.*|AutoLoginUser=$AUTOLOGINUSER|" $KDMCFG - fi + [ -n "$AUTOLOGINENABLE" ] && sed -i "s|^#\?AutoLoginEnable=.*|AutoLoginEnable=$AUTOLOGINENABLE|" $KDMCFG + [ -z "$AUTOLOGINENABLE" -a -n "$AUTOLOGINUSER" ] && sed -i "s|^#\?AutoLoginEnable=.*|AutoLoginEnable=true|" $KDMCFG + [ -n "$AUTOLOGINUSER" ] && sed -i "s|^#\?AutoLoginUser=.*|AutoLoginUser=$AUTOLOGINUSER|" $KDMCFG [ -n "$AUTOLOGINDELAY" ] && sed -i "s|^#\?AutoLoginDelay=.*|AutoLoginDelay=$AUTOLOGINDELAY|" $KDMCFG [ -n "$AUTOLOGINAGAIN" ] && sed -i "s|^#\?AutoLoginAgain=.*|AutoLoginAgain=$AUTOLOGINAGAIN|" $KDMCFG [ -n "$AUTOLOGINLOCKED" ] && sed -i "s|^#\?AutoLoginLocked=.*|AutoLoginLocked=$AUTOLOGINLOCKED|" $KDMCFG