Skip to content

Commit 3b289cf

Browse files
committed
profiles: clarify and add opengl-game to profile.template
To make it consistent with the other include profiles. See etc/templates/profile.template. With this, all `etc/inc/allow-*` files are listed in profile.template. The explanation is based on a comment by @rusty-snake[1]. Relates to netblue30#4071. This is a follow-up to netblue30#6299. [1] netblue30#4071 (comment)
1 parent e6b10a4 commit 3b289cf

14 files changed

+23
-0
lines changed

etc/inc/allow-opengl-game.inc

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
# Persistent customizations should go in a .local file.
33
include allow-opengl-game.local
44

5+
# Explanation: Fedora (and maybe others) install a .desktop file that uses
6+
# `Exec=foo-wrapper` instead of `Exec=foo`. Each /usr/bin/foo-wrapper is a
7+
# symlink to /usr/bin/opengl-game-wrapper.sh, which checks hardware
8+
# acceleration and then starts the game or notifies the user that there is a
9+
# problem.
10+
511
noblacklist ${PATH}/bash
612
whitelist /usr/share/opengl-games-utils/opengl-game-functions.sh
713
private-bin basename,bash,cut,glxinfo,grep,head,sed,zenity

etc/profile-a-l/alienarena-wrapper.profile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include alienarena-wrapper.local
66
# added by included profile
77
#include globals.local
88

9+
# Allow opengl-game wrapper script (distribution-specific)
910
include allow-opengl-game.inc
1011

1112
private-bin alienarena-wrapper

etc/profile-a-l/ballbuster-wrapper.profile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include ballbuster-wrapper.local
66
# added by included profile
77
#include globals.local
88

9+
# Allow opengl-game wrapper script (distribution-specific)
910
include allow-opengl-game.inc
1011

1112
private-bin ballbuster-wrapper

etc/profile-a-l/colorful-wrapper.profile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include colorful-wrapper.local
66
# added by included profile
77
#include globals.local
88

9+
# Allow opengl-game wrapper script (distribution-specific)
910
include allow-opengl-game.inc
1011

1112
private-bin colorful-wrapper

etc/profile-a-l/etr-wrapper.profile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include etr-wrapper.local
66
# added by included profile
77
#include globals.local
88

9+
# Allow opengl-game wrapper script (distribution-specific)
910
include allow-opengl-game.inc
1011

1112
private-bin etr-wrapper

etc/profile-a-l/gl-117-wrapper.profile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include gl-117-wrapper.local
66
# added by included profile
77
#include globals.local
88

9+
# Allow opengl-game wrapper script (distribution-specific)
910
include allow-opengl-game.inc
1011

1112
private-bin gl-117-wrapper

etc/profile-a-l/glaxium-wrapper.profile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include glaxium-wrapper.local
66
# added by included profile
77
#include globals.local
88

9+
# Allow opengl-game wrapper script (distribution-specific)
910
include allow-opengl-game.inc
1011

1112
private-bin glaxium-wrapper

etc/profile-m-z/neverball-wrapper.profile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include neverball-wrapper.local
66
# added by included profile
77
#include globals.local
88

9+
# Allow opengl-game wrapper script (distribution-specific)
910
include allow-opengl-game.inc
1011

1112
private-bin neverball-wrapper

etc/profile-m-z/neverputt-wrapper.profile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include neverputt-wrapper.local
66
# added by included profile
77
#include globals.local
88

9+
# Allow opengl-game wrapper script (distribution-specific)
910
include allow-opengl-game.inc
1011

1112
private-bin neverputt-wrapper

etc/profile-m-z/pinball-wrapper.profile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include pinball-wrapper.local
66
# added by included profile
77
#include globals.local
88

9+
# Allow opengl-game wrapper script (distribution-specific)
910
include allow-opengl-game.inc
1011

1112
private-bin pinball-wrapper

etc/profile-m-z/scorched3d-wrapper.profile

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Persistent local customizations
44
include scorched3d-wrapper.local
55

6+
# Allow opengl-game wrapper script (distribution-specific)
67
include allow-opengl-game.inc
78

89
private-bin scorched3d-wrapper

etc/profile-m-z/supertuxkart-wrapper.profile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include supertuxkart-wrapper.local
66
# added by included profile
77
#include globals.local
88

9+
# Allow opengl-game wrapper script (distribution-specific)
910
include allow-opengl-game.inc
1011

1112
private-bin supertuxkart-wrapper

etc/profile-m-z/xonotic.profile

+3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ include globals.local
88

99
noblacklist ${HOME}/.xonotic
1010

11+
# Allow /bin/sh (blacklisted by disable-shell.inc)
1112
include allow-bin-sh.inc
13+
14+
# Allow opengl-game wrapper script (distribution-specific)
1215
include allow-opengl-game.inc
1316

1417
include disable-common.inc

etc/templates/profile.template

+3
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ include globals.local
9191
# Allow nodejs (blacklisted by disable-interpreters.inc)
9292
#include allow-nodejs.inc
9393

94+
# Allow opengl-game wrapper script (distribution-specific)
95+
#include allow-opengl-game.inc
96+
9497
# Allow perl (blacklisted by disable-interpreters.inc)
9598
#include allow-perl.inc
9699

0 commit comments

Comments
 (0)