diff options
Diffstat (limited to 'postcat.sh')
-rw-r--r-- | postcat.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/postcat.sh b/postcat.sh new file mode 100644 index 000000000000..f1f61ce50125 --- /dev/null +++ b/postcat.sh @@ -0,0 +1,8 @@ +#!/bin/bash +_ELECTRON=/usr/bin/electron22 +_ASAR="/opt/postcat/resources/app.asar" +if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then + exec ${_ELECTRON} ${_ASAR} "$@" +else + exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" +fi |