summarylogtreecommitdiffstats
path: root/webeep-sync.sh
diff options
context:
space:
mode:
authorzxp198210052023-09-22 13:07:17 +0800
committerzxp198210052023-09-22 13:07:17 +0800
commitdb92bcebdef22aab944d854671f263793d8db861 (patch)
tree6afa62f5962b7002a18e338e0314b65890d52436 /webeep-sync.sh
downloadaur-db92bcebdef22aab944d854671f263793d8db861.tar.gz
update to 1.0.3
Diffstat (limited to 'webeep-sync.sh')
-rw-r--r--webeep-sync.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/webeep-sync.sh b/webeep-sync.sh
new file mode 100644
index 000000000000..ac676b30ae0c
--- /dev/null
+++ b/webeep-sync.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+_ELECTRON=/usr/bin/electron22
+_ASAR="/opt/webeep-sync/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