X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fxscreensaver.kss;h=dac4d9841ca9c7687f4b3f950449078044814788;hp=98ad08ebfbc8a2469cccee7108d7598b787b534e;hb=06e9a7886a77cad92f9ddbc169d6d199a4d8b76d;hpb=14463b6ad1ab1ccf81f9c33350b048e410ba94cb diff --git a/driver/xscreensaver.kss b/driver/xscreensaver.kss index 98ad08eb..dac4d984 100755 --- a/driver/xscreensaver.kss +++ b/driver/xscreensaver.kss @@ -112,15 +112,8 @@ if [ -n "$Install" ] ; then trap "kill $!" SIGTERM # Set these to kill the daemon trap "kill $!" SIGKILL - if [ -f "/etc/shadow" ]; then - # xscreensaver is run as the user, which has no access to the /etc/shadow file. Other - # .kss screensavers use kcheckpass, which would have to be hacked into xscreensaver to - # work correctly. This just activates the screensaver with no password lock. - trap "/usr/X11R6/bin/xscreensaver-command -activate" SIGUSR1 - else - # xscreensaver can be locked, because it can read the /etc/passwd file. - trap "/usr/X11R6/bin/xscreensaver-command -lock" SIGUSR1 - fi +# KDE sends SIGUSER1 to indicate the user has hit the "lock" button. + trap "/usr/X11R6/bin/xscreensaver-command -lock" SIGUSR1 wait $! # Do not exit, just wait for signals.