mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
Use the appropriate library path for whether the app is 32- or 64-bit in gamemoderun (#156)
This commit is contained in:
parent
3881b8b2c8
commit
c6d1b45bfb
@ -1,11 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Helper script to launch games with gamemode
|
# Helper script to launch games with gamemode
|
||||||
|
|
||||||
# Path to install gamemoded auto script
|
# Path to installed libgamemodeauto. ld.so will substitute "\$LIB" to get the
|
||||||
CONFIG_LIB_DIR="@GAMEMODE_LIB_DIR@/libgamemodeauto.so.0"
|
# appropriate path depending on whether the app is 32- or 64-bit.
|
||||||
|
GAMEMODEAUTO="@GAMEMODE_PREFIX@/\$LIB/libgamemodeauto.so.0"
|
||||||
|
|
||||||
# Set the ld preload path prefixed libgamemodeauto
|
export LD_PRELOAD="${GAMEMODEAUTO}${LD_PRELOAD:+:$LD_PRELOAD}"
|
||||||
export LD_PRELOAD="${CONFIG_LIB_DIR}${LD_PRELOAD:+:$LD_PRELOAD}"
|
|
||||||
|
|
||||||
# Launch
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
data_conf = configuration_data()
|
data_conf = configuration_data()
|
||||||
data_conf.set('BINDIR', path_bindir)
|
data_conf.set('BINDIR', path_bindir)
|
||||||
data_conf.set('LIBEXECDIR', path_libexecdir)
|
data_conf.set('LIBEXECDIR', path_libexecdir)
|
||||||
data_conf.set('GAMEMODE_LIB_DIR', path_libdir)
|
data_conf.set('GAMEMODE_PREFIX', path_prefix)
|
||||||
|
|
||||||
# Pull in the example config
|
# Pull in the example config
|
||||||
config_example = run_command(
|
config_example = run_command(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user