summarylogtreecommitdiffstats
path: root/fairshare.sh
diff options
context:
space:
mode:
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