diff options
author | zxp19821005 | 2023-11-14 10:58:49 +0800 |
---|---|---|
committer | zxp19821005 | 2023-11-14 10:58:49 +0800 |
commit | de36cdf9a531d934f8e8500bada3db7c189e38a2 (patch) | |
tree | e673754ad13e228d182371e106b071bb07889380 /fairshare.sh | |
parent | 37b019c5bcce96e2dde486adc8792527d3ec79d8 (diff) | |
download | aur-de36cdf9a531d934f8e8500bada3db7c189e38a2.tar.gz |
fix errors
Diffstat (limited to 'fairshare.sh')
-rw-r--r-- | fairshare.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fairshare.sh b/fairshare.sh new file mode 100644 index 000000000000..b60b64c9bcf7 --- /dev/null +++ b/fairshare.sh @@ -0,0 +1,12 @@ +#!/bin/bash +_ELECTRON=/usr/bin/electron25 +APPDIR=/usr/lib/fairshare +export PATH="${APPDIR}:${PATH}" +export LD_LIBRARY_PATH="${APPDIR}/lib:${LD_LIBRARY_PATH}" +_ASAR="${APPDIR}/app.asar" +cd $APPDIR && ./api 7632 +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 |