diff options
Diffstat (limited to 'ficus.sh')
-rw-r--r-- | ficus.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,8 @@ #!/bin/bash +_ELECTRON=/usr/bin/electron13 +_ASAR="/opt/ficus/ficus.asar" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec electron13 /opt/ficus/ficus.asar "$@" + exec ${_ELECTRON} ${_ASAR} "$@" else - exec electron13 --no-sandbox /opt/ficus/ficus.asar "$@" + exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" fi
\ No newline at end of file |