flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.49k stars 287 forks source link

Improve configuration precedence #1207

Open nozwock opened 9 months ago

nozwock commented 9 months ago
The priorities of different config files are:
    1. `/path/to/application/dir/MangoHud.conf`
    ...

The first configuration priority /path/to/application/dir/MangoHud.conf, has limitations when running non-native apps using wine, mangohud looks for the configuration in the directory where the wine binary is located, which isn't ideal.

A more effective alternative would be to first look for the configuration in the working directory.

I'd rather not use the per-application configuration feature, as I'd like to keep the configs local to the app's directory for easier access and having them not depend on the app's filename.

Version: mangohud 0.7.0-2

flightlessmango commented 9 months ago

mangohud looks for the configuration in the directory where the wine binary is located

This is a bug, probably appeared at some point with changes in the runtime container