mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-11-29 02:18:46 +03:00
21 lines
659 B
Bash
21 lines
659 B
Bash
#!/bin/bash
|
|
|
|
if [ -z "$APPDIR" ] ; then
|
|
path="$(dirname "$(readlink -f "${THIS}")")"
|
|
|
|
while [[ "$path" != "" && ! -e "$path/$1" ]]; do
|
|
path=${path%/*}
|
|
done
|
|
|
|
APPDIR="$path"
|
|
fi
|
|
|
|
export PATH="${APPDIR}:${APPDIR}/usr/sbin:${PATH}"
|
|
export XDG_DATA_DIRS="./share/:/usr/share/gnome:/usr/local/share/:/usr/share/:${XDG_DATA_DIRS}"
|
|
export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}"
|
|
export XDG_DATA_DIRS="${APPDIR}"/usr/share/:"${XDG_DATA_DIRS}":/usr/share/gnome/:/usr/local/share/:/usr/share/
|
|
export GSETTINGS_SCHEMA_DIR="${APPDIR}/usr/share/glib-2.0/schemas:${GSETTINGS_SCHEMA_DIR}"
|
|
|
|
cd "$APPDIR"
|
|
|
|
exec "$APPDIR/anime-game-launcher" $@
|