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

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Fri Mar 27 19:37:42 CET 2009


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





--- Comment #5 from Robby Workman <rw at rlworkman.net>  2009-03-27 18:37:42 UTC ---
Geez.  Sorry for the bug spam, but I overlooked an obvious problem.  The
following should be good now:

if [ -x $(which xscreensaver-command 2>/dev/null) ]; then
   xscreensaver-command -lock || break
   exit 0
fi

if [ -x $(which gnome-screensaver-command --lock 2>/dev/null) ]; then
   gnome-screensaver-command --lock || break
   exit 0
fi

if [ -x $(which slock 2>/dev/null) ]; then
   slock || break
   exit 0
fi

# If none of the above return successfully, then fallback to xlock
xlock $*
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