summarylogtreecommitdiffstats
path: root/jsonbox.sh
diff options
context:
space:
mode:
authorzxp198210052023-10-17 09:17:35 +0800
committerzxp198210052023-10-17 09:17:35 +0800
commitd84fde3be0dfac49a9c9130218d55cca5995f77f (patch)
treeb6a8ce4ad27f63e94e96fa5f141869f067938a82 /jsonbox.sh
downloadaur-d84fde3be0dfac49a9c9130218d55cca5995f77f.tar.gz
update to 2.3.0
Diffstat (limited to 'jsonbox.sh')
-rw-r--r--jsonbox.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/jsonbox.sh b/jsonbox.sh
new file mode 100644
index 000000000000..f8dd1f8bbf08
--- /dev/null
+++ b/jsonbox.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+_ELECTRON=/usr/bin/electron19
+APPDIR="/opt/jsonbox"
+export PATH="${APPDIR}:${APPDIR}/usr/sbin:${PATH}"
+export XDG_DATA_DIRS="./share/:/usr/share/gnome:/usr/local/share/:/usr/share/:${XDG_DATA_DIRS}"
+export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}"
+export XDG_DATA_DIRS="${APPDIR}"/usr/share/:"${XDG_DATA_DIRS}":/usr/share/gnome/:/usr/local/share/:/usr/share/
+export GSETTINGS_SCHEMA_DIR="${APPDIR}/usr/share/glib-2.0/schemas:${GSETTINGS_SCHEMA_DIR}"
+_ASAR="${APPDIR}/resources/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