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