#!/bin/sh
-# Author: Tim Pope
+# $Id$
+# -*- sh -*- vim: ft=sh sw=4 sts=4
-# Launches a game. Works both on $1 (an argument) and $0 (the actually name
+# Launches a game. Works both on $1 (an argument) and $0 (the actual name
# of the script, presumably a symlink). Takes care of killing troublemaking
# games, pausing unclutter, remapping the keyboard, and setting an away
# message.
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