From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- .../commandergenius/files/commandergenius-wrapper | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 games-arcade/commandergenius/files/commandergenius-wrapper (limited to 'games-arcade/commandergenius/files') 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 "$@" -- cgit v1.2.3