jql: 8.0.0 -> 8.0.2 (#362884)
[NixPkgs.git] / pkgs / tools / games / gamemode / preload-nix-workaround.patch
blob06989ff984abd27e1b81916fc53654370cbe73f1
1 diff --git a/data/gamemoderun b/data/gamemoderun
2 index 573b3e4..6f2799e 100755
3 --- a/data/gamemoderun
4 +++ b/data/gamemoderun
5 @@ -5,5 +5,6 @@ GAMEMODEAUTO_NAME="libgamemodeauto.so.0"
7 # ld will find the right path to load the library, including for 32-bit apps.
8 LD_PRELOAD="${GAMEMODEAUTO_NAME}${LD_PRELOAD:+:$LD_PRELOAD}"
9 +LD_LIBRARY_PATH="@libraryPath@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
11 -exec env LD_PRELOAD="${LD_PRELOAD}" $GAMEMODERUNEXEC "$@"
12 +exec env LD_PRELOAD="${LD_PRELOAD}" LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" $GAMEMODERUNEXEC "$@"