mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-11 07:37:53 +02:00
Add "gamemoderun", a wrapper bash script like "primusrun"
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.
This commit is contained in:
11
data/gamemoderun.in
Normal file
11
data/gamemoderun.in
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/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 "$@"
|
Reference in New Issue
Block a user