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

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.
12 lines
293 B
Bash
Executable File
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 "$@"
|