Skip to content

Commit

Permalink
Only disabling kpersonalizer when using kde3, kde4 doesn't need that …
Browse files Browse the repository at this point in the history
…hack.
  • Loading branch information
daniel-baumann committed Mar 12, 2010
1 parent 93551ae commit c8a8eed
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scripts/live-bottom/34disable_kpersonalizer
Expand Up @@ -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

Expand Down

0 comments on commit c8a8eed

Please sign in to comment.