diff options
author | zxp19821005 | 2023-07-15 16:39:50 +0800 |
---|---|---|
committer | zxp19821005 | 2023-07-15 16:39:50 +0800 |
commit | 11bf826404076e56eafb5d4db0747f1341ef0d85 (patch) | |
tree | 679a7b183f5c9a32e65c84dee10c170197a50a84 /marvin.sh | |
download | aur-11bf826404076e56eafb5d4db0747f1341ef0d85.tar.gz |
first release
Diffstat (limited to 'marvin.sh')
-rw-r--r-- | marvin.sh | 8 |
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 |