···1diff --git a/bin/mangohud.in b/bin/mangohud.in
2-index 53c72ef..18240ea 100755
3--- a/bin/mangohud.in
4+++ b/bin/mangohud.in
5-@@ -13,13 +13,15 @@ fi
6 DISABLE_LD_PRELOAD="cs2.sh
7- some_other_exe"
89--MANGOHUD_LIB_NAME="@ld_libdir_mangohud@libMangoHud_opengl.so"
10+LD_LIBRARY_PATH="@libraryPath@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
11+XDG_DATA_DIRS="@dataDir@${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}"
12-+MANGOHUD_LIB_NAME="libMangoHud_opengl.so"
13-14- if [ "$1" = "--dlsym" ]; then
15-- MANGOHUD_LIB_NAME="@ld_libdir_mangohud@libMangoHud_dlsym.so:${MANGOHUD_LIB_NAME}"
16-+ MANGOHUD_LIB_NAME="libMangoHud_dlsym.so:${MANGOHUD_LIB_NAME}"
17- shift # shift will only be executed if $1 is "--dlsym"
18- elif [ "$MANGOHUD_DLSYM" = "1" ]; then
19-- MANGOHUD_LIB_NAME="@ld_libdir_mangohud@libMangoHud_dlsym.so:${MANGOHUD_LIB_NAME}"
20-+ MANGOHUD_LIB_NAME="libMangoHud_dlsym.so:${MANGOHUD_LIB_NAME}"
21- fi
2223 if [ "$1" = "--version" ]; then
24-@@ -41,7 +43,7 @@ for exe in $DISABLE_LD_PRELOAD; do
025 done
2627 if [ "$disable_preload" = true ]; then
···30 else
31 # Make sure we don't append mangohud lib multiple times
32 # otherwise, this could cause issues with the steam runtime
33-@@ -54,5 +56,5 @@ else
34 LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}${MANGOHUD_LIB_NAME}"
35 esac
36
···1diff --git a/bin/mangohud.in b/bin/mangohud.in
2+index 4cffeed..c19b635 100755
3--- a/bin/mangohud.in
4+++ b/bin/mangohud.in
5+@@ -13,7 +13,9 @@ fi
6 DISABLE_LD_PRELOAD="cs2.sh
7+ "
89+-MANGOHUD_LIB_NAME="@ld_libdir_mangohud@libMangoHud_shim.so"
10+LD_LIBRARY_PATH="@libraryPath@${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
11+XDG_DATA_DIRS="@dataDir@${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}"
12++MANGOHUD_LIB_NAME="libMangoHud_shim.so"
0000000001314 if [ "$1" = "--version" ]; then
15+ echo @version@
16+@@ -39,7 +41,7 @@ for exe in $DISABLE_LD_PRELOAD; do
17 done
1819 if [ "$disable_preload" = true ]; then
···22 else
23 # Make sure we don't append mangohud lib multiple times
24 # otherwise, this could cause issues with the steam runtime
25+@@ -52,5 +54,5 @@ else
26 LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}${MANGOHUD_LIB_NAME}"
27 esac
28