summarylogtreecommitdiffstats
path: root/marvin.sh
diff options
context:
space:
mode:
authorzxp198210052023-07-15 16:39:50 +0800
committerzxp198210052023-07-15 16:39:50 +0800
commit11bf826404076e56eafb5d4db0747f1341ef0d85 (patch)
tree679a7b183f5c9a32e65c84dee10c170197a50a84 /marvin.sh
downloadaur-11bf826404076e56eafb5d4db0747f1341ef0d85.tar.gz
first release
Diffstat (limited to 'marvin.sh')
-rw-r--r--marvin.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/marvin.sh b/marvin.sh
new file mode 100644
index 000000000000..67ad1cf6c637
--- /dev/null
+++ b/marvin.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+_ELECTRON=/usr/bin/electron24
+_ASAR="/opt/marvin/marvin.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