diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/commandergenius/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/commandergenius/files')
-rw-r--r-- | games-arcade/commandergenius/files/commandergenius-wrapper | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/games-arcade/commandergenius/files/commandergenius-wrapper b/games-arcade/commandergenius/files/commandergenius-wrapper new file mode 100644 index 000000000000..0fa5243a5df0 --- /dev/null +++ b/games-arcade/commandergenius/files/commandergenius-wrapper @@ -0,0 +1,18 @@ +#!/bin/sh + +# CommanderGenius by default searches pwd for keen data which can cause +# massive load/lag depending on which dir you are currently in. +# This wrapper cd's into ~/.CommanderGenius unless you pass a directory +# on the command line which is used as additional search path then. +# +# use: commandergenius [path-to-keen-dir] + +if [ -z $1 ] ; then + SEARCHDIR=~/.CommanderGenius +else + SEARCHDIR="$1" +fi + +cd ${SEARCHDIR} + +exec CommanderGenius "$@" |