flathub / org.freedesktop.Platform.VulkanLayer.MangoHud

https://flathub.org/apps/details/org.freedesktop.Platform.VulkanLayer.MangoHud
18 stars 8 forks source link

DLSYM hooking does not work. #20

Open Bitwolfies opened 1 year ago

Bitwolfies commented 1 year ago

For instance, melonds only has an opengl backend at this time, using flatseal to add the env variable MANGOHUD_DLSYM=1 unfortunately does not allow for mangohud to work.

gasinvein commented 1 year ago

MangoHud for OpenGL won't work with the env var alone, you're supposed to prefix the game launch command with mangohud, or add MangoHud lib path to LD_PRELOAD manually.

Bitwolfies commented 1 year ago

Unfortunate, but I understand opengl is a lot more complicated to get working. I would however had assumed that since adding mangohud to the etc file starts it for every app automatically, that maybe using DLSYM would do the same.

Bitwolfies commented 1 year ago

I did try running flatpak run net.kuribo64.melonDS -- mangohud --dlysm and mangohud --dlsym flatpak run net.kuribo64.melonDS but it seems to have had no effect. Might be related to this issue? https://github.com/flatpak/flatpak/issues/4011

gasinvein commented 1 year ago

You'll need to run something like flatpak run --command=/usr/lib/extensions/vulkan/MangoHud/bin/mangohud net.kuribo64.melonDS melonDS

Calinou commented 1 year ago

flatpak run --command=/usr/lib/extensions/vulkan/MangoHud/bin/mangohud net.kuribo64.melonDS melonDS

Thanks :slightly_smiling_face: I can confirm this works with Minetest, for instance:

flatpak run --command=/usr/lib/extensions/vulkan/MangoHud/bin/mangohud net.minetest.Minetest minetest