diff --git a/bin/mangohud.in b/bin/mangohud.in index 6c3c6e8b..4c5fce72 100755 --- a/bin/mangohud.in +++ b/bin/mangohud.in @@ -10,7 +10,7 @@ fi MANGOHUD_LIB_NAME="@ld_libdir_mangohud@libMangoHud_opengl.so" -if [ "$1" = "--dlsym" ]; then +if [ "$1" = "--dlsym" ] || [ "$MANGOHUD_DLSYM" = "1" ]; then MANGOHUD_LIB_NAME="@ld_libdir_mangohud@libMangoHud_dlsym.so:${MANGOHUD_LIB_NAME}" shift fi diff --git a/data/mangohud.1 b/data/mangohud.1 index 27c66a97..fda8aaa5 100644 --- a/data/mangohud.1 +++ b/data/mangohud.1 @@ -15,7 +15,7 @@ MangoHud can be enabled for Vulkan applications by setting \fBMANGOHUD=1\fR as e .br To load MangoHud for any application, including OpenGL applications, the \fBmangohud\fR executable can be used. It preloads a library via ld into the application. .br -Note: some OpenGL applications may also need dlsym hooking. This can be done by passing option \fB--dlsym\fR. +Note: some OpenGL applications may also need dlsym hooking. This can be done by passing option \fB--dlsym\fR or by setting \fBMANGOHUD_DLSYM=1\fR as envrionment variable. .SH CONFIG MangoHud comes with a config file which can be used to set configuration options globally or per application. The priorities of different config files are: