diff options
Diffstat (limited to 'picgo.sh')
-rw-r--r-- | picgo.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/picgo.sh b/picgo.sh new file mode 100644 index 000000000000..74e341355e13 --- /dev/null +++ b/picgo.sh @@ -0,0 +1,8 @@ +#!/bin/bash +_ELECTRON=/usr/bin/electron16 +_ASAR="/opt/picgo/picgo.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 |