diff options
Diffstat (limited to 'switchhosts.sh')
-rw-r--r-- | switchhosts.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/switchhosts.sh b/switchhosts.sh new file mode 100644 index 000000000000..6b447eae8ef3 --- /dev/null +++ b/switchhosts.sh @@ -0,0 +1,10 @@ +#!/bin/bash +_ELECTRON=/usr/bin/electron24 +APPDIR="/usr/lib/switchhosts" +export PATH="${APPDIR}:${PATH}" +_ASAR="${APPDIR}/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 |