diff options
Diffstat (limited to 'games/assaultcube/files/assaultcube_client.in')
-rw-r--r-- | games/assaultcube/files/assaultcube_client.in | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/games/assaultcube/files/assaultcube_client.in b/games/assaultcube/files/assaultcube_client.in index a57f79969148..78cace30dcb0 100644 --- a/games/assaultcube/files/assaultcube_client.in +++ b/games/assaultcube/files/assaultcube_client.in @@ -1,25 +1,4 @@ #!/bin/sh -# The executable needs to be run from its data directory, and needs to store -# configuration in it. We therefore mirror the data directory hierarchy in -# ~/.XXX, and create symlinks to the data files, but the configuration files -# are copied, and write permission for the user is added to them. - -APPNAME="assaultcube" -CUBE_OPTIONS="--home=${HOME}/.${APPNAME} --init" - -if [ -d ~/.$APPNAME ] -then - echo "Using existing ~/.$APPNAME directory." -else - echo "Creating ~/.$APPNAME directory." - cd %%DATADIR%% || exit 1 - find * -type d -exec mkdir -p ~/.$APPNAME/{} \; - find * -type f -name "*.cfg" \ - -exec cp %%DATADIR%%/{} ~/.$APPNAME/{} \; \ - -exec chmod u+w ~/.$APPNAME/{} \; 2>/dev/null - find * -type f -exec ln -s %%DATADIR%%/{} ~/.$APPNAME/{} \; 2>/dev/null -fi - -cd ~/.$APPNAME || exit 1 -exec %%PREFIX%%/libexec/${APPNAME}_client ${CUBE_OPTIONS} "$@" +CUBE_OPTIONS="--home=${HOME}/.assaultcube --init" +cd %%DATADIR%% && exec %%PREFIX%%/libexec/assaultcube_client ${CUBE_OPTIONS} "$@" |