aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-a-l/lutris.profile
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-11 05:26:05 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-09-08 04:57:37 -0300
commitc6d33375cc34e4e5e527ab43c219adfbc8848c62 (patch)
tree0ccf4359f9b8ab8a5c4e37bd042fbf19314f12a8 /etc/profile-a-l/lutris.profile
parentprofiles: fix some comments (diff)
downloadfirejail-c6d33375cc34e4e5e527ab43c219adfbc8848c62.tar.gz
firejail-c6d33375cc34e4e5e527ab43c219adfbc8848c62.tar.zst
firejail-c6d33375cc34e4e5e527ab43c219adfbc8848c62.zip
profiles: fix commented code and eol comments
Main changes: * Remove the space after `#` for commented code lines to distinguish them from normal comments * Use `#` instead of `-` for comments at the end of the line so that commented code lines work after being uncommented Commands used to search and replace: arg0="$(cat contrib/syntax/lists/profile_commands_arg0.list | LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')" arg1="$(cat contrib/syntax/lists/profile_commands_arg1.list | LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')" git ls-files -z -- etc/inc etc/profile* | xargs -0 -I '{}' \ sh -c "printf '%s\n' \"\$(sed -E \ -e 's/^# ($arg0)( [#-]-? .*)?\$/#\\1\\2/' \ -e 's/^# ($arg1)( [^ ]*)?( [#-]-? .*)?\$/#\\1\\2\\3/' \ -e 's/^# (whitelist \\$)/#\\1/' \ -e 's/^(#[^ ].+) --? /\\1 # /' \ '{}')\" >'{}'" Commands used to check for leftover entries: arg0="$(cat contrib/syntax/lists/profile_commands_arg0.list | LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')" arg1="$(cat contrib/syntax/lists/profile_commands_arg1.list | LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')" git grep -E "^# ($arg0|$arg1)( +|$)" -- etc/inc etc/profile* See also commit 30f9ad908 ("build: improve comments in firecfg.config", 2023-08-05) / PR #5942.
Diffstat (limited to 'etc/profile-a-l/lutris.profile')
-rw-r--r--etc/profile-a-l/lutris.profile12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/profile-a-l/lutris.profile b/etc/profile-a-l/lutris.profile
index 2658c5373..c3497c3bd 100644
--- a/etc/profile-a-l/lutris.profile
+++ b/etc/profile-a-l/lutris.profile
@@ -13,7 +13,7 @@ noblacklist ${HOME}/.cache/wine
13noblacklist ${HOME}/.cache/winetricks 13noblacklist ${HOME}/.cache/winetricks
14noblacklist ${HOME}/.config/lutris 14noblacklist ${HOME}/.config/lutris
15noblacklist ${HOME}/.local/share/lutris 15noblacklist ${HOME}/.local/share/lutris
16# noblacklist ${HOME}/.wine 16#noblacklist ${HOME}/.wine
17noblacklist /tmp/.wine-* 17noblacklist /tmp/.wine-*
18# Don't block access to /sbin and /usr/sbin to allow using ldconfig. Otherwise 18# Don't block access to /sbin and /usr/sbin to allow using ldconfig. Otherwise
19# Lutris won't even start. 19# Lutris won't even start.
@@ -39,7 +39,7 @@ mkdir ${HOME}/.cache/wine
39mkdir ${HOME}/.cache/winetricks 39mkdir ${HOME}/.cache/winetricks
40mkdir ${HOME}/.config/lutris 40mkdir ${HOME}/.config/lutris
41mkdir ${HOME}/.local/share/lutris 41mkdir ${HOME}/.local/share/lutris
42# mkdir ${HOME}/.wine 42#mkdir ${HOME}/.wine
43whitelist ${DOWNLOADS} 43whitelist ${DOWNLOADS}
44whitelist ${HOME}/Games 44whitelist ${HOME}/Games
45whitelist ${HOME}/.cache/lutris 45whitelist ${HOME}/.cache/lutris
@@ -47,7 +47,7 @@ whitelist ${HOME}/.cache/wine
47whitelist ${HOME}/.cache/winetricks 47whitelist ${HOME}/.cache/winetricks
48whitelist ${HOME}/.config/lutris 48whitelist ${HOME}/.config/lutris
49whitelist ${HOME}/.local/share/lutris 49whitelist ${HOME}/.local/share/lutris
50# whitelist ${HOME}/.wine 50#whitelist ${HOME}/.wine
51whitelist /usr/share/lutris 51whitelist /usr/share/lutris
52whitelist /usr/share/wine 52whitelist /usr/share/wine
53include whitelist-common.inc 53include whitelist-common.inc
@@ -55,11 +55,11 @@ include whitelist-usr-share-common.inc
55include whitelist-runuser-common.inc 55include whitelist-runuser-common.inc
56include whitelist-var-common.inc 56include whitelist-var-common.inc
57 57
58# allow-debuggers 58#allow-debuggers
59# apparmor 59#apparmor
60caps.drop all 60caps.drop all
61ipc-namespace 61ipc-namespace
62# net none 62#net none
63netfilter 63netfilter
64nodvd 64nodvd
65nogroups 65nogroups