mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 08:07:20 +02:00

This should remove a point of failure currently where users fail to set LD_PRELOAD correctly, or the path is wrong somehow. FWIW: The old method still works, and I've noted that in the README.
12 lines
306 B
Bash
12 lines
306 B
Bash
#!/bin/bash
|
|
# Helper script to launch games with gamemode
|
|
|
|
# Path to install gamemoded auto script
|
|
CONFIG_LIB_DIR="@GAMEMODE_LIB_DIR@/libgamemodeauto.so.0"
|
|
|
|
# Set the ld library path prefixed libgamemodeauto
|
|
export LD_LIBRARY_PATH=${CONFIG_LIB_DIR}${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
|
|
|
# Launch
|
|
exec "$@"
|