Only disabling kpersonalizer when using kde3, kde4 doesn't need that hack.
authorDaniel Baumann <daniel@debian.org>
Fri, 12 Mar 2010 14:27:23 +0000 (15:27 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:48:07 +0000 (17:48 +0100)
scripts/live-bottom/34disable_kpersonalizer

index d61c879..1dc4545 100755 (executable)
@@ -31,20 +31,23 @@ log_begin_msg "Disabling kpersonalizer"
 
 # live-initramfs script
 
-if chroot /root /usr/bin/which kpersonalizer >/dev/null
+if [ -e /etc/kde3 ]
 then
-       # Disable first-login wizard for KDE
-       if [ ! -f /root/etc/kde3/kpersonalizerrc ]
+       if chroot /root /usr/bin/which kpersonalizer >/dev/null
        then
+               # Disable first-login wizard for KDE
+               if [ ! -f /root/etc/kde3/kpersonalizerrc ]
+               then
 
 cat > /root/etc/kde3/kpersonalizerrc << EOF
 [General]
 FirstLogin=false
 EOF
 
-       else
-               echo "I'm not smart enough to disable kpersonalizer startup" >&2
-               echo "Because kpersonalizerrc already exists" >&2
+               else
+                       echo "I'm not smart enough to disable kpersonalizer startup" >&2
+                       echo "Because kpersonalizerrc already exists" >&2
+               fi
        fi
 fi