Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mangohud is enabled, but mangohud executable could not be found on $path #2218

Closed
kentgr opened this issue Dec 17, 2022 · 15 comments
Closed

Comments

@kentgr
Copy link

kentgr commented Dec 17, 2022

Describe the bug

After ticking the mangohud box i cant run any game on Linux and get the error (I am in Arch Linux using Flatpak version of
HeroicGamesLauncher)
mangohud is enabled, but mangohud executable could not be found on $path

Add logs

mangohud is enabled, but `mangohud` executable could not be found on $path

Steps to reproduce

  1. Go to Game
  2. Click on Preferences
  3. Scroll down to mangohud
  4. See error

Expected behavior

It should launch

Screenshots

No response

System Information

  • OS Arch Linux
  • Heroic Version 2.5.2

Additional information

mangohud works with Steam and Lutris

@sca255
Copy link

sca255 commented Dec 17, 2022

i think your mangohud is not added to the path variable

@kentgr
Copy link
Author

kentgr commented Dec 17, 2022

Ok, it's strange because I can just write mangohud in Bash terminal, and it comes up. Am I missing something here?

@kentgr
Copy link
Author

kentgr commented Dec 17, 2022

Also it works with no issue in Lutris and Steam

@Nocccer
Copy link
Collaborator

Nocccer commented Dec 17, 2022

On heroic flatpak only mangohud flatpak should work ootb. For all other mangohuds you need to set the correct flatpak permissions. Maybe someone can tell you what permissions are needed

@flavioislima
Copy link
Member

This is documented on our wiki:
https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/wiki/SteamDeck---Flatpak#mangohud-doesnt-work

@LiamDawe
Copy link

Sorry to dig this back up, but I believe I have everything set but Heroic still claims the same.

Screenshot_20230712_171820

MangoHUD flatpak is installed as well, but still get the same error when ticking the MangoHud box.

@M4st0d0n
Copy link

M4st0d0n commented Sep 23, 2023

Sorry to dig this back up, but I believe I have everything set but Heroic still claims the same.

MangoHUD flatpak is installed as well, but still get the same error when ticking the MangoHud box.

Had the issue recently and found Flatpak (with the command shown on MangoHUD's Github) had installed the files in :

~/.local/share/flatpak/runtime/org.freedesktop.Platform.VulkanLayer.MangoHud

Which I then added as additionnal path for Heroic via FlatSeal, and then MangoHUD shows ingame.

@NickyMeuleman
Copy link

NickyMeuleman commented Oct 1, 2023

Flatpak (with the command shown on MangoHUD's Github) had installed the files in :

~/.local/share/flatpak/runtime/org.freedesktop.Platform.VulkanLayer.MangoHud

Thanks for this, it didn't work for me but pointed me in the right direction.

I added to the PATH for the flatpak of the Heroic Games Launcher

I added the directory to the binary for the flatpak of Mangohud directly.
In my case that was /var/lib/flatpak/runtime/org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/21.08/active/files/bin, newer version (22, or 23) did not seem to work for me. No idea why, but it works and I'm not bothered to find out why.

Then ticking the box within Heroic Games > specific game > settings > other > use Mangohud
worked and used my modified mangohud settings correctly

@Nocccer
Copy link
Collaborator

Nocccer commented Oct 1, 2023

This problem is not yet solved in the stable version for detecting mangohud under steam.
Steam throws an error and in the current stable version we expect that mangohud does not work if a error is thrown. This will be fixed with the next release version

@ArchUser02
Copy link

Flatpak (with the command shown on MangoHUD's Github) had installed the files in :
~/.local/share/flatpak/runtime/org.freedesktop.Platform.VulkanLayer.MangoHud

Thanks for this, it didn't work for me but pointed me in the right direction.

I added to the PATH for the flatpak of the Heroic Games Launcher

I added the directory to the binary for the flatpak of Mangohud directly. In my case that was /var/lib/flatpak/runtime/org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/21.08/active/files/bin, newer version (22, or 23) did not seem to work for me. No idea why, but it works and I'm not bothered to find out why.

Then ticking the box within Heroic Games > specific game > settings > other > use Mangohud worked and used my modified mangohud settings correctly

How do I add the PATH?

@regs01
Copy link

regs01 commented Oct 19, 2024

You don't need to. You need to to install MangoHud from Flathub by running:

flatpak install mangohud

For current Heroic Launcher install version org.freedesktop.Platform.VulkanLayer.MangoHud 23.08

To customize make MangoHud folder in ~/.config and place MangoHud.conf there.

Then run once

flatpak override --user --filesystem=xdg-config/MangoHud:ro

And tick checkbox in game settings in Heroic Launcher.

@ArchUser02
Copy link

You don't need to. You need to to install MangoHud from Flathub by running:

flatpak install mangohud

For current Heroic Launcher install version org.freedesktop.Platform.VulkanLayer.MangoHud 23.08

To customize make MangoHud folder in ~/.config and place MangoHud.conf there.

Then run once

flatpak override --user --filesystem=xdg-config/MangoHud:ro

And tick checkbox in game settings in Heroic Launcher.

Yes, I found this on Reddit a while ago. Thank you for reply though.

@CavaleriOmar
Copy link

I'm in this situation, but I can't get heroic launcher to “see” mangohud at all.

I have already tried the above, but nothing

@regs01
Copy link

regs01 commented Jan 22, 2025

I'm in this situation, but I can't get heroic launcher to “see” mangohud at all.

I have already tried the above, but nothing

You need org.freedesktop.Platform.VulkanLayer.MangoHud 24.08 nowadays. This kind of mess Flatpak has to address.

@frecio231
Copy link

frecio231 commented Jan 25, 2025

I've downloaded Mangohud, this is my $PATH on the flatpak
PATH=/app/bin:/app/utils/bin:/usr/bin:/usr/lib/extensions/vulkan/MangoHud/bin:/usr/lib/extensions/vulkan/gamescope/bin:/usr/lib/extensions/vulkan/OBSVkCapture/bin:/app/bin/heroic/resources/app.asar.unpacked/build/bin/linux:/var/lib/flatpak/runtime/org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/24.08/active/files/bin

And this is my flatpak list result showing the version I installed is 24.08 and the stable branch of heroic
Heroic Games Launcher com.heroicgameslauncher.hgl v2.15.2 stable system
MangoHud org.freedesktop.Platform.VulkanLayer.MangoHud 0.7.2 24.08 system
And still get the error
Mangohud is enabled, but mangohud executable could not be found on $PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests