summarylogtreecommitdiffstats
path: root/gog-terraria
blob: 3c13bc8b803cab3df5382f28cf0285d0bb2cfca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
export TERM=xterm

run='/opt/gog-terraria/game/Terraria'
cd /opt/gog-terraria/  # The launcher fails unless in its dir.

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 --profile=/opt/gog-terraria/gog-terraria.profile "$run"
else
  "$run"
fi