diff options
Diffstat (limited to 'thorium-reader.sh')
-rw-r--r-- | thorium-reader.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/thorium-reader.sh b/thorium-reader.sh new file mode 100644 index 0000000..61a96a6 --- /dev/null +++ b/thorium-reader.sh | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/bin/bash | ||
2 | _ELECTRON=/usr/bin/electron25 | ||
3 | APPDIR="/usr/lib/thorium-reader" | ||
4 | export PATH="${APPDIR}:${PATH}" | ||
5 | _ASAR="${APPDIR}/app.asar" | ||
6 | if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then | ||
7 | exec ${_ELECTRON} ${_ASAR} "$@" | ||
8 | else | ||
9 | exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" | ||
10 | fi \ No newline at end of file | ||