mangoapp does not read config files
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:
- Launch gamescope with
--mangoapp - Have a MangoHud.conf file
- Check the Hud
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
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.
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 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.
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.
So what is the exact procedure and steps to have a working mangoapp with a custom config file?
As a workaround you can set MANGOHUD_CONFIGFILE
As a workaround you can set
MANGOHUD_CONFIGFILE
Where do I have to put it?
It should look something like this
MANGOHUD_CONFIGFILE=path/to/config gamescope --mangoapp %command%
Doesn't work or did I do something wrong?
MANGOHUD_CONFIGFILE=/home/wanderer/.config/MangoHud/MangoHud.conf gamescope -f -e -h 1440 --mangoapp -- %command%
That looks correct assuming there's a config in that location
MANGOHUD_CONFIGFILE is only available in gamescope with version 3.14.24.
This issue should be resolved in https://github.com/ValveSoftware/gamescope/commit/96f141d8b8453f9c28872e8ffc94a29d81d0758d
3.14.24 is exactly what's installed, but still doesn't work.
This has been resolved in https://github.com/ValveSoftware/gamescope/commit/96f141d8b8453f9c28872e8ffc94a29d81d0758d
Still doesn't work for me on arch dwl wayland mangodhud v0.7.1