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