summaryrefslogtreecommitdiffstats
path: root/thorium-reader.sh
diff options
context:
space:
mode:
Diffstat (limited to 'thorium-reader.sh')
-rw-r--r--thorium-reader.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/thorium-reader.sh b/thorium-reader.sh
index aacd8f8..f9ced14 100644
--- a/thorium-reader.sh
+++ b/thorium-reader.sh
@@ -1,15 +1,14 @@
1#!/bin/sh 1#!/bin/sh
2set -e 2set -e
3_APPDIR="/usr/lib/@appname@" 3_APPDIR="/usr/lib/@appname@"
4_ASAR="${_APPDIR}/@appasar@" 4_RUNNAME="${_APPDIR}/@runname@"
5export PATH="${_APPDIR}:${PATH}" 5export PATH="${_APPDIR}:${PATH}"
6export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" 6export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}"
7export ELECTRON_IS_DEV=0 7export ELECTRON_IS_DEV=0
8export NODE_ENV=production 8export NODE_ENV=production
9cd "${_APPDIR}" 9cd "${_APPDIR}"
10if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then 10if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
11 exec electron@electronversion@ "${_ASAR}" "$@" 11 exec electron@electronversion@ "${_RUNNAME}" "$@" || exit $?
12else 12else
13 exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" 13 exec electron@electronversion@ "${_RUNNAME}" --no-sandbox "$@" || exit $?
14fi 14fi \ No newline at end of file
15exit \ No newline at end of file