mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 07:37:21 +02:00
11 lines
379 B
Bash
Executable File
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}" "$@"
|