Fix gamemoderun to set the right environment variable

This commit is contained in:
Alex Smith 2019-02-19 10:10:51 +00:00
parent 536be9c4c4
commit d17d682082

View File

@ -4,8 +4,8 @@
# 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}
# Set the ld preload path prefixed libgamemodeauto
export LD_PRELOAD="${CONFIG_LIB_DIR}${LD_PRELOAD:+:$LD_PRELOAD}"
# Launch
exec "$@"