firejail and gamemoderun #4201
rusty-snake
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
GameMode has a small shell-script
gamemoderun
in order to make games without GameMode support supporting GameMode. It works byLD_PRELOAD
inglibgamemodeauto.so.0
which of course does not work with firejail. You need to rungamemoderun
inside the sandbox or--env=LD_PRELOAD=libgamemodeauto.so.0
to make GameMode work with firejail. In both cases you need to make a few adoptions to the profile.Using supertuxkart as example, we want to run
gamemoderun
beforefirejail
(as already said).gamemoderun
.In order to run the command above, you need to add the following to your
supertuxkart.local
:noblacklist ${PATH}/bash
because ofinclude disable-shell.inc
.private-bin gamemoderun,bash,env
because supertuxkart.profile hasprivate-bin
enabled.com.feralinteractive.GameMode
is always required, even for a manualLD_PRELOAD
.Beta Was this translation helpful? Give feedback.
All reactions