gamemode/data/gamemoderun.in
Alex Smith c0032efc4f Make gamemoderun.in executable (#115)
The install_mode option was only added in Meson 0.47. In versions prior
to that, it will base the mode on the permissions of the source file,
so set this executable to be compatible with older versions.

See #115.
2019-03-25 16:40:54 +00:00

12 lines
293 B
Bash
Executable File

#!/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 preload path prefixed libgamemodeauto
export LD_PRELOAD="${CONFIG_LIB_DIR}${LD_PRELOAD:+:$LD_PRELOAD}"
# Launch
exec "$@"