summarylogtreecommitdiffstats
path: root/affine.sh
blob: 384b7641104d195a3e32602e45a64aaf2c96b784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
APPDIR="/usr/lib/affine"
export PATH="${APPDIR}:${PATH}"
export ELECTRON_IS_DEV=0
#export LD_LIBRARY_PATH="${APPDIR}/lib:${LD_LIBRARY_PATH}"
_ASAR="${APPDIR}/app.asar"
if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
    cd $APPDIR
    exec electron@electronversion@ ${_ASAR} "$@"
else
    cd $APPDIR
    exec electron@electronversion@ ${_ASAR} --no-sandbox "$@"
fi