summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwix2020-08-02 00:21:07 +0200
committerSwix2020-08-02 00:21:07 +0200
commitac19ca0de7764555d9bf6a43c21b4f6e49684165 (patch)
treef7d31c95cb9782d5eed3734cd6b1b715e6e197cf
parent6b466d23a96bf20f9ce897d21f817276efee5579 (diff)
downloadaur-ac19ca0de7764555d9bf6a43c21b4f6e49684165.tar.gz
Craft a Firejail profile for the game
-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