Skip to content

Commit

Permalink
profiles: clarify and add opengl-game to profile.template (netblue30#…
Browse files Browse the repository at this point in the history
…6300)

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)
  • Loading branch information
kmk3 authored Apr 5, 2024
1 parent e6b10a4 commit 1cfa06b
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions etc/inc/allow-opengl-game.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions etc/profile-a-l/alienarena-wrapper.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/ballbuster-wrapper.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/colorful-wrapper.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/etr-wrapper.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gl-117-wrapper.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/glaxium-wrapper.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions etc/profile-m-z/neverball-wrapper.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions etc/profile-m-z/neverputt-wrapper.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions etc/profile-m-z/pinball-wrapper.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions etc/profile-m-z/scorched3d-wrapper.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions etc/profile-m-z/supertuxkart-wrapper.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions etc/profile-m-z/xonotic.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions etc/templates/profile.template
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1cfa06b

Please sign in to comment.