summarylogtreecommitdiffstats
path: root/frontimer.sh
blob: 8c20e6657544540031c55a285ebff099a5a7df8d (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
_ELECTRON=/usr/bin/electron23
_ASAR="/opt/frontimer/frontimer.asar"
if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
    exec ${_ELECTRON} ${_ASAR} "$@"
else
    exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@"
fi