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