From 7b153b047e343e4b0c4614366370891a71526c51 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 6 Aug 2004 02:20:06 +0000 Subject: [PATCH] Search /usr/games in addition to /usr/local/bin --- bin/gamelaunch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/gamelaunch b/bin/gamelaunch index 9914ae1..a3f03a7 100755 --- a/bin/gamelaunch +++ b/bin/gamelaunch @@ -29,8 +29,10 @@ xmodmap -e "keysym Hyper_L = F14" xmodmap -e "keysym Super_R = F15" for suffix in '_demo' '-demo' 'demo' ''; do + [ -x "/usr/games/`basename $0`$suffix" ] && \ + binary="/usr/games/`basename $0`$suffix" [ -x "/usr/local/bin/`basename $0`$suffix" ] && \ - binary=/usr/local/bin/`basename $0`$suffix + binary="/usr/local/bin/`basename $0`$suffix" done if [ "`basename $0`" = gamelaunch ]; then -- 2.30.2