summarylogtreecommitdiffstats
path: root/moyu.sh
diff options
context:
space:
mode:
Diffstat (limited to 'moyu.sh')
-rw-r--r--moyu.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/moyu.sh b/moyu.sh
index 79d995340b7d..ebe608debf63 100644
--- a/moyu.sh
+++ b/moyu.sh
@@ -1,6 +1,9 @@
#!/bin/bash
_ELECTRON=/usr/bin/electron16
-_ASAR="/opt/moyu/app.asar"
+APPDIR=/usr/lib/moyu
+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