diff options
Diffstat (limited to 'fishing-funds.sh')
-rw-r--r-- | fishing-funds.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fishing-funds.sh b/fishing-funds.sh new file mode 100644 index 000000000000..4ddc52e604ae --- /dev/null +++ b/fishing-funds.sh @@ -0,0 +1,11 @@ +#!/bin/bash +_ELECTRON=/usr/bin/electron27 +APPDIR=/usr/lib/fishing-funds +export PATH="${APPDIR}:${PATH}" +export LD_LIBRARY_PATH="${APPDIR}/lib:${LD_LIBRARY_PATH}" +_ASAR="${APPDIR}/app.asar" +if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then + exec ${_ELECTRON} ${_ASAR} "$@" +else + exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" +fi
\ No newline at end of file |