summarylogtreecommitdiffstats
path: root/tjmc-launcher.sh
blob: 09a458270cd9036446f2446b9a82d5672c783e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
APPDIR="/usr/lib/tjmc-launcher"
export PATH="${APPDIR}:${PATH}"
export ELECTRON_IS_DEV=0
#export LD_LIBRARY_PATH="${APPDIR}/swiftshader:${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