summarylogtreecommitdiffstats
path: root/soundsync.sh
blob: f5c6d54d6f0765ffc80c63e3a7853f6cb03d1344 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
_ELECTRON=/usr/bin/electron15
APPDIR="/usr/lib/soundsync"
export PATH="${APPDIR}:${PATH}"
_ASAR="${APPDIR}/app"
if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
    exec ${_ELECTRON} ${_ASAR} "$@"
else
    exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@"
fi