summarylogtreecommitdiffstats
path: root/fairshare.sh
diff options
context:
space:
mode:
authorzxp198210052023-11-14 10:58:49 +0800
committerzxp198210052023-11-14 10:58:49 +0800
commitde36cdf9a531d934f8e8500bada3db7c189e38a2 (patch)
treee673754ad13e228d182371e106b071bb07889380 /fairshare.sh
parent37b019c5bcce96e2dde486adc8792527d3ec79d8 (diff)
downloadaur-de36cdf9a531d934f8e8500bada3db7c189e38a2.tar.gz
fix errors
Diffstat (limited to 'fairshare.sh')
-rw-r--r--fairshare.sh12
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