[Xfce-bugs] [Bug 5121] Add slock as an option in xflock4 script

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Wed Mar 18 16:53:02 CET 2009


http://bugzilla.xfce.org/show_bug.cgi?id=5121


Robby Workman <rw at rlworkman.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #2239|0                           |1
        is obsolete|                            |




--- Comment #2 from Robby Workman <rw at rlworkman.net>  2009-03-18 15:53:01 UTC ---
Created an attachment (id=2241)
 --> (http://bugzilla.xfce.org/attachment.cgi?id=2241)
Try #2

Good point.  How's this?  (hopefully it's not overcomplicated)
* attached patch implements this version *

if test x"$(which slock 2>/dev/null)" != x"" ; then
    if ! ( ps -fC xscreensaver | grep $USER ) ; then
        if ! ( ps -fC gnome-screensaver | grep $USER ) ; then
            slock
        fi
    fi
elif test x"$(which xscreensaver-command 2>/dev/null)" != x"" ; then
    xscreensaver-command -lock
elif test x"$(which gnome-screensaver-command 2>/dev/null)" != x"" ; then
    gnome-screensaver-command --lock
else
    xlock $*
fi
exit 0

-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Xfce-bugs mailing list