Comment 9 for bug 474654

Revision history for this message
KIAaze (zohn-joidberg) wrote : Re: Desktop visible when screen is locked in Kubuntu

Ok, here's a bug workaround:
1) sudo mv /usr/lib/kde4/libexec/kscreenlocker /usr/lib/kde4/libexec/kscreenlocker.bin
2) Create a script named /usr/lib/kde4/libexec/kscreenlocker containing the following:
==============
#!/bin/sh

#store compositing setting
COMPOSITING=`qdbus org.kde.kwin /KWin org.kde.KWin.compositingActive`

# Do stuff before locking...
kwriteconfig --file kwinrc --group Compositing --key Enabled false
kwin --replace &

/usr/lib/kde4/libexec/kscreenlocker.bin $@

# Do stuff after unlocking...
if [ "$COMPOSITING" = "true" ]
then
  # turn on
  kwriteconfig --file kwinrc --group Compositing --key Enabled true
else
  # turn off
  kwriteconfig --file kwinrc --group Compositing --key Enabled false
fi

# Then restart kwin (in Alt+F2) with:
kwin --replace &
==============

For more info:
http://forum.kde.org/viewtopic.php?f=64&t=61217

Thanks again WindPower. ;)