summarylogtreecommitdiffstats
path: root/gog-stardew-valley
blob: 6efc13cb34522614b09b8f59be88191178c0b497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/sh

run="/opt/gog-stardew-valley/start.sh"
# The launcher fails unless in its dir.
cd "/opt/gog-stardew-valley/" || exit 1

if which firejail >/dev/null 2>&1 && [ -z "$FIREJAIL_IGNORE" ]; then
    echo "Firejail detected. Enforcing a sandbox"
    echo "To bypass Firejail enforcement, run FIREJAIL_IGNORE=1 $run."
    firejail --caps.drop=all "$run"
else
  "${run}"
fi