summarylogtreecommitdiffstats
path: root/tome.sh
diff options
context:
space:
mode:
authorzxp198210052023-10-09 06:45:27 +0800
committerzxp198210052023-10-09 06:45:27 +0800
commit3169e0e5d406f32d567ab8a2f2a1d5f1e93eaaf7 (patch)
tree8c8690d14bdcb74b69b41a1b34a26aa08edc48eb /tome.sh
downloadaur-3169e0e5d406f32d567ab8a2f2a1d5f1e93eaaf7.tar.gz
update to 0.7.5
Diffstat (limited to 'tome.sh')
-rw-r--r--tome.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tome.sh b/tome.sh
new file mode 100644
index 000000000000..739f30d4d721
--- /dev/null
+++ b/tome.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+_ELECTRON=/usr/bin/electron18
+_ASAR="/opt/tome/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