openbsd-ports/x11/xfce4/xfce-utils/patches/patch-scripts_xflock4
landry f1cfda569c patch xflock4 to use whereis instead of which, unbreaks it.
based on a diff from andreas kahari at gmail, thanks !

ok ajacoutot@
2008-02-13 13:08:53 +00:00

16 lines
617 B
Plaintext

$OpenBSD: patch-scripts_xflock4,v 1.1 2008/02/13 13:08:53 landry Exp $
--- scripts/xflock4.orig Wed Feb 13 13:23:00 2008
+++ scripts/xflock4 Wed Feb 13 13:23:12 2008
@@ -19,9 +19,9 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-if test x"`which xscreensaver-command 2>/dev/null`" != x""; then
+if test x"`whereis xscreensaver-command`" != x""; then
xscreensaver-command -lock
-elif test x"`which gnome-screensaver-command 2>/dev/null`" != x""; then
+elif test x"`whereis gnome-screensaver-command`" != x""; then
gnome-screensaver-command --lock
else
xlock $*