summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gog-terraria2
-rw-r--r--gog-terraria.profile5
2 files changed, 6 insertions, 1 deletions
diff --git a/gog-terraria b/gog-terraria
index d4d4fb0dd176..157040071bc1 100644
--- a/gog-terraria
+++ b/gog-terraria
@@ -7,7 +7,7 @@ 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 "$run"
+ firejail --caps.drop=all --profile=/opt/gog-terraria/gog-terraria.profile "$run"
else
"$run"
fi
diff --git a/gog-terraria.profile b/gog-terraria.profile
new file mode 100644
index 000000000000..36212503918c
--- /dev/null
+++ b/gog-terraria.profile
@@ -0,0 +1,5 @@
+noblacklist ${HOME}/.local/share/Terraria
+mkdir ${HOME}/.local/share/Terraria
+whitelist ${HOME}/.local/share/Terraria
+
+include /etc/firejail/default.profile