diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-08-08 21:05:02 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-08-08 21:16:37 +0200 |
commit | 33af0c6a7c2f9722883fbe65a8683731bccc50cf (patch) | |
tree | f5f0dbed8ee9a3fcc82730d430ae154545756a24 /launcher/minecraft/MinecraftInstance.cpp | |
parent | 68f3f98bc3974667812ed778d572a0aeb0c89bec (diff) | |
download | PrismLauncher-33af0c6a7c2f9722883fbe65a8683731bccc50cf.tar.gz PrismLauncher-33af0c6a7c2f9722883fbe65a8683731bccc50cf.tar.bz2 PrismLauncher-33af0c6a7c2f9722883fbe65a8683731bccc50cf.zip |
refactor: don't include mangohud's library path
This could cause issues on some environments. Users should just put
MangoHud libs into global LD_LIBRARY_PATH, just like with any other
library
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/minecraft/MinecraftInstance.cpp')
-rw-r--r-- | launcher/minecraft/MinecraftInstance.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/launcher/minecraft/MinecraftInstance.cpp b/launcher/minecraft/MinecraftInstance.cpp index 5a6f8de0..67a9332e 100644 --- a/launcher/minecraft/MinecraftInstance.cpp +++ b/launcher/minecraft/MinecraftInstance.cpp @@ -450,10 +450,8 @@ QProcessEnvironment MinecraftInstance::createLaunchEnvironment() if (settings()->get("EnableMangoHud").toBool()) { auto preload = env.value("LD_PRELOAD", "") + ":libMangoHud_dlsym.so:libMangoHud.so"; - auto lib_path = env.value("LD_LIBRARY_PATH", "") + ":/usr/local/$LIB/mangohud/:/usr/$LIB/mangohud/"; env.insert("LD_PRELOAD", preload); - env.insert("LD_LIBRARY_PATH", lib_path); env.insert("MANGOHUD", "1"); } |