MangoHud icon indicating copy to clipboard operation
MangoHud copied to clipboard

mangoapp does not read config files

Open NoXPhasma opened this issue 2 years ago • 16 comments

Describe the bug When I launch gamescope with --mangoapp it will not read any config files. Using MANGOHUD_CONFIG works, though.

List relevant hardware/software information

  • Arch Linux
  • MangoHud version 0.7.2
  • AMD 7800XT

To Reproduce Steps to reproduce the behavior:

  1. Launch gamescope with --mangoapp
  2. Have a MangoHud.conf file
  3. Check the Hud

NoXPhasma avatar Jul 14 '24 08:07 NoXPhasma

What appears to be happening is that gamescope is creating a temporary config file for mangoapp. This is similar to what steamos does in gamescope-session, but it's not compatible with each other.

@Joshua-Ashton is there a reason to make a temporary file by default like this? I think normal users would expect the config to work just like mangohud

flightlessmango avatar Jul 14 '24 11:07 flightlessmango

Gamescope recently enabled the MANGOHUD_CONFIGFILE variable with https://github.com/ValveSoftware/gamescope/commit/b44ea3c591f9ed28f5480d1f86936ad63c937077. This works fine, but I assume we should communicate it somewhere.

However, this will also prevent any executable based read of configurations.

NoXPhasma avatar Jul 15 '24 20:07 NoXPhasma

I wanna say that I have a very similar problem, except without gamescope and just using mangohud .... MANGOHUD_CONFIG works, but MANGOHUD_CONFIGFILE or creating ~/.config/MangoHud/MangoHud.conf does not. (Ignore if unrelated, should I create separate issue?)

EDIT: I think the config file is being read. I was simply confused by the defaults, I assumed I could comment out everything in the config file and it would show nothing. I don't understand how to remove the defaults like fps/graph etc. Only can add things. (sorry for this false report.)

d3nd3 avatar Jul 15 '24 21:07 d3nd3

@d3nd3 It's the same issue. MANGOHUD_CONFIGFILE only works with a gamescope version, built with this patch, you might need to build it from git.

NoXPhasma avatar Jul 15 '24 22:07 NoXPhasma

ive got the same problem I cant launch mangoapp using any custom config, i tried mangohud_configfile but cant get it to load either. mangohud_configfile works fine with regular mangohud though. I am using Wayland with Nvidia if that makes a difference.

regular mangohud load config: https://i.imgur.com/57Jscdp.png

same command with gamescope -mangoapp: https://i.imgur.com/ZsLrDlG.png

meaning, i can only use mangoapp with default config.

justanotheradminuser avatar Jul 17 '24 00:07 justanotheradminuser

So what is the exact procedure and steps to have a working mangoapp with a custom config file?

HolySoap avatar Jul 22 '24 15:07 HolySoap

As a workaround you can set MANGOHUD_CONFIGFILE

flightlessmango avatar Jul 22 '24 16:07 flightlessmango

As a workaround you can set MANGOHUD_CONFIGFILE

Where do I have to put it?

HolySoap avatar Jul 22 '24 16:07 HolySoap

It should look something like this MANGOHUD_CONFIGFILE=path/to/config gamescope --mangoapp %command%

flightlessmango avatar Jul 22 '24 16:07 flightlessmango

Doesn't work or did I do something wrong? MANGOHUD_CONFIGFILE=/home/wanderer/.config/MangoHud/MangoHud.conf gamescope -f -e -h 1440 --mangoapp -- %command%

HolySoap avatar Jul 22 '24 16:07 HolySoap

That looks correct assuming there's a config in that location

flightlessmango avatar Jul 22 '24 16:07 flightlessmango

MANGOHUD_CONFIGFILE is only available in gamescope with version 3.14.24.

NoXPhasma avatar Jul 22 '24 16:07 NoXPhasma

This issue should be resolved in https://github.com/ValveSoftware/gamescope/commit/96f141d8b8453f9c28872e8ffc94a29d81d0758d

flightlessmango avatar Jul 22 '24 16:07 flightlessmango

3.14.24 is exactly what's installed, but still doesn't work. Screenshot_2024-07-22_2

HolySoap avatar Jul 22 '24 16:07 HolySoap

This has been resolved in https://github.com/ValveSoftware/gamescope/commit/96f141d8b8453f9c28872e8ffc94a29d81d0758d

flightlessmango avatar Jul 26 '24 18:07 flightlessmango

Still doesn't work for me on arch dwl wayland mangodhud v0.7.1

Letus252 avatar Feb 08 '25 23:02 Letus252