gamemode/data/gamemoderun.in
Stephan Lachnit 47db83e509 Add hybrid GPU support
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2019-07-14 16:45:33 +02:00

11 lines
379 B
Bash
Executable File

#!/bin/bash
# Helper script to launch games with gamemode
# Path to installed libgamemodeauto. ld.so will substitute "\$LIB" to get the
# appropriate path depending on whether the app is 32- or 64-bit.
GAMEMODEAUTO="@GAMEMODE_PREFIX@/\$LIB/libgamemodeauto.so.0"
LD_PRELOAD="${GAMEMODEAUTO}${LD_PRELOAD:+:$LD_PRELOAD}"
exec $GAMEMODERUNEXEC env LD_PRELOAD="${LD_PRELOAD}" "$@"