simplify libgamemodeauto preloading

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
Stephan Lachnit
2020-07-06 20:32:34 +02:00
committed by afayaz-feral
parent 8b408694b0
commit 7a68a178ac
4 changed files with 11 additions and 25 deletions

9
data/gamemoderun Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# Helper script to launch games with gamemode
GAMEMODEAUTO_NAME="libgamemodeauto.so.0"
# ld will find the right path to load the library, including for 32-bit apps.
LD_PRELOAD="${GAMEMODEAUTO_NAME}${LD_PRELOAD:+:$LD_PRELOAD}"
exec $GAMEMODERUNEXEC env LD_PRELOAD="${LD_PRELOAD}" "$@"