summarylogtreecommitdiffstats
path: root/fishing-funds.sh
diff options
context:
space:
mode:
authorzxp198210052023-11-23 18:05:13 +0800
committerzxp198210052023-11-23 18:05:13 +0800
commit11376397938b77901cc8f0899285c0ae16bcc4fd (patch)
tree5674ff25dd5759be1d247eee54bcde92e7591352 /fishing-funds.sh
downloadaur-11376397938b77901cc8f0899285c0ae16bcc4fd.tar.gz
update to 8.1.1
Diffstat (limited to 'fishing-funds.sh')
-rw-r--r--fishing-funds.sh11
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