diff --git a/etc/inc/allow-opengl-game.inc b/etc/inc/allow-opengl-game.inc index 5d2d6c5c18d..5ec227348dd 100644 --- a/etc/inc/allow-opengl-game.inc +++ b/etc/inc/allow-opengl-game.inc @@ -2,6 +2,12 @@ # Persistent customizations should go in a .local file. include allow-opengl-game.local +# Explanation: Fedora (and maybe others) install a .desktop file that uses +# `Exec=foo-wrapper` instead of `Exec=foo`. Each /usr/bin/foo-wrapper is a +# symlink to /usr/bin/opengl-game-wrapper.sh, which checks hardware +# acceleration and then starts the game or notifies the user that there is a +# problem. + noblacklist ${PATH}/bash whitelist /usr/share/opengl-games-utils/opengl-game-functions.sh private-bin basename,bash,cut,glxinfo,grep,head,sed,zenity diff --git a/etc/profile-a-l/alienarena-wrapper.profile b/etc/profile-a-l/alienarena-wrapper.profile index b31996cd261..b05a6968da5 100644 --- a/etc/profile-a-l/alienarena-wrapper.profile +++ b/etc/profile-a-l/alienarena-wrapper.profile @@ -6,6 +6,7 @@ include alienarena-wrapper.local # added by included profile #include globals.local +# Allow opengl-game wrapper script (distribution-specific) include allow-opengl-game.inc private-bin alienarena-wrapper diff --git a/etc/profile-a-l/ballbuster-wrapper.profile b/etc/profile-a-l/ballbuster-wrapper.profile index 419dcaab59b..64a78e1540c 100644 --- a/etc/profile-a-l/ballbuster-wrapper.profile +++ b/etc/profile-a-l/ballbuster-wrapper.profile @@ -6,6 +6,7 @@ include ballbuster-wrapper.local # added by included profile #include globals.local +# Allow opengl-game wrapper script (distribution-specific) include allow-opengl-game.inc private-bin ballbuster-wrapper diff --git a/etc/profile-a-l/colorful-wrapper.profile b/etc/profile-a-l/colorful-wrapper.profile index 4b762047dc2..ebccffe0929 100644 --- a/etc/profile-a-l/colorful-wrapper.profile +++ b/etc/profile-a-l/colorful-wrapper.profile @@ -6,6 +6,7 @@ include colorful-wrapper.local # added by included profile #include globals.local +# Allow opengl-game wrapper script (distribution-specific) include allow-opengl-game.inc private-bin colorful-wrapper diff --git a/etc/profile-a-l/etr-wrapper.profile b/etc/profile-a-l/etr-wrapper.profile index 98f9499187f..66dcb3af144 100644 --- a/etc/profile-a-l/etr-wrapper.profile +++ b/etc/profile-a-l/etr-wrapper.profile @@ -6,6 +6,7 @@ include etr-wrapper.local # added by included profile #include globals.local +# Allow opengl-game wrapper script (distribution-specific) include allow-opengl-game.inc private-bin etr-wrapper diff --git a/etc/profile-a-l/gl-117-wrapper.profile b/etc/profile-a-l/gl-117-wrapper.profile index d783940f3a5..52b81295495 100644 --- a/etc/profile-a-l/gl-117-wrapper.profile +++ b/etc/profile-a-l/gl-117-wrapper.profile @@ -6,6 +6,7 @@ include gl-117-wrapper.local # added by included profile #include globals.local +# Allow opengl-game wrapper script (distribution-specific) include allow-opengl-game.inc private-bin gl-117-wrapper diff --git a/etc/profile-a-l/glaxium-wrapper.profile b/etc/profile-a-l/glaxium-wrapper.profile index 7dc2cf65e5d..341f3ac4b5c 100644 --- a/etc/profile-a-l/glaxium-wrapper.profile +++ b/etc/profile-a-l/glaxium-wrapper.profile @@ -6,6 +6,7 @@ include glaxium-wrapper.local # added by included profile #include globals.local +# Allow opengl-game wrapper script (distribution-specific) include allow-opengl-game.inc private-bin glaxium-wrapper diff --git a/etc/profile-m-z/neverball-wrapper.profile b/etc/profile-m-z/neverball-wrapper.profile index 534e41dd19f..086bd6e5e12 100644 --- a/etc/profile-m-z/neverball-wrapper.profile +++ b/etc/profile-m-z/neverball-wrapper.profile @@ -6,6 +6,7 @@ include neverball-wrapper.local # added by included profile #include globals.local +# Allow opengl-game wrapper script (distribution-specific) include allow-opengl-game.inc private-bin neverball-wrapper diff --git a/etc/profile-m-z/neverputt-wrapper.profile b/etc/profile-m-z/neverputt-wrapper.profile index dacd113cc12..d29809c9a43 100644 --- a/etc/profile-m-z/neverputt-wrapper.profile +++ b/etc/profile-m-z/neverputt-wrapper.profile @@ -6,6 +6,7 @@ include neverputt-wrapper.local # added by included profile #include globals.local +# Allow opengl-game wrapper script (distribution-specific) include allow-opengl-game.inc private-bin neverputt-wrapper diff --git a/etc/profile-m-z/pinball-wrapper.profile b/etc/profile-m-z/pinball-wrapper.profile index 2b5ed6e278e..fec4c31329e 100644 --- a/etc/profile-m-z/pinball-wrapper.profile +++ b/etc/profile-m-z/pinball-wrapper.profile @@ -6,6 +6,7 @@ include pinball-wrapper.local # added by included profile #include globals.local +# Allow opengl-game wrapper script (distribution-specific) include allow-opengl-game.inc private-bin pinball-wrapper diff --git a/etc/profile-m-z/scorched3d-wrapper.profile b/etc/profile-m-z/scorched3d-wrapper.profile index e76caec1d03..a8713edbf99 100644 --- a/etc/profile-m-z/scorched3d-wrapper.profile +++ b/etc/profile-m-z/scorched3d-wrapper.profile @@ -3,6 +3,7 @@ # Persistent local customizations include scorched3d-wrapper.local +# Allow opengl-game wrapper script (distribution-specific) include allow-opengl-game.inc private-bin scorched3d-wrapper diff --git a/etc/profile-m-z/supertuxkart-wrapper.profile b/etc/profile-m-z/supertuxkart-wrapper.profile index af8d73debfd..20744090cec 100644 --- a/etc/profile-m-z/supertuxkart-wrapper.profile +++ b/etc/profile-m-z/supertuxkart-wrapper.profile @@ -6,6 +6,7 @@ include supertuxkart-wrapper.local # added by included profile #include globals.local +# Allow opengl-game wrapper script (distribution-specific) include allow-opengl-game.inc private-bin supertuxkart-wrapper diff --git a/etc/profile-m-z/xonotic.profile b/etc/profile-m-z/xonotic.profile index 87e75986d56..ad4ed4d8bd2 100644 --- a/etc/profile-m-z/xonotic.profile +++ b/etc/profile-m-z/xonotic.profile @@ -8,7 +8,10 @@ include globals.local noblacklist ${HOME}/.xonotic +# Allow /bin/sh (blacklisted by disable-shell.inc) include allow-bin-sh.inc + +# Allow opengl-game wrapper script (distribution-specific) include allow-opengl-game.inc include disable-common.inc diff --git a/etc/templates/profile.template b/etc/templates/profile.template index 2188721b8eb..459baf51a29 100644 --- a/etc/templates/profile.template +++ b/etc/templates/profile.template @@ -91,6 +91,9 @@ include globals.local # Allow nodejs (blacklisted by disable-interpreters.inc) #include allow-nodejs.inc +# Allow opengl-game wrapper script (distribution-specific) +#include allow-opengl-game.inc + # Allow perl (blacklisted by disable-interpreters.inc) #include allow-perl.inc