summarylogtreecommitdiffstats
path: root/aniship.sh
diff options
context:
space:
mode:
Diffstat (limited to 'aniship.sh')
-rw-r--r--aniship.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/aniship.sh b/aniship.sh
index 9a5b5320ef3e..c58d8ae6198e 100644
--- a/aniship.sh
+++ b/aniship.sh
@@ -1,12 +1,9 @@
#!/bin/bash
_ELECTRON=/usr/bin/electron16
-APPDIR="/opt/aniship"
-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}"
-_ASAR="${APPDIR}/resources/app.asar"
+APPDIR=/usr/lib/aniship
+export PATH="${APPDIR}:${PATH}"
+export LD_LIBRARY_PATH="${APPDIR}/swiftshader:${APPDIR}/lib:${LD_LIBRARY_PATH}"
+_ASAR="${APPDIR}/app.asar"
if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
exec ${_ELECTRON} ${_ASAR} "$@"
else