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