summarylogtreecommitdiffstats
path: root/eusoft-ting-es.sh
diff options
context:
space:
mode:
authorzxp198210052023-08-11 16:17:24 +0800
committerzxp198210052023-08-11 16:17:24 +0800
commitf912f44c815164ad7aad127ad29e7f30d5fa78b1 (patch)
tree9d40747a51ce742f8f079687f10a8cff342720c7 /eusoft-ting-es.sh
downloadaur-f912f44c815164ad7aad127ad29e7f30d5fa78b1.tar.gz
first release
Diffstat (limited to 'eusoft-ting-es.sh')
-rw-r--r--eusoft-ting-es.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/eusoft-ting-es.sh b/eusoft-ting-es.sh
new file mode 100644
index 000000000000..54ceaf322419
--- /dev/null
+++ b/eusoft-ting-es.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+_ELECTRON=/usr/bin/electron13
+_ASAR="/opt/eusoft-ting-es/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