gamemode
gamemode copied to clipboard
gamemode.ini isn't read from $PWD
Describe the bug
A gamemode.ini configuration isn't read from the current PWD. The same file works in ~/.config/gamemode.ini:
[custom]
start=echo start > /tmp/gm_test
To Reproduce Steps used to reproduce the behavior:
- Create the above file in
~/.config/gamemode.ini - Launch
gamemoderunwith anything - As expected:
/tmp/gm_testcontainsstart rm /tmp/gm_testmv ~/.config/gamemode.ini ./- Launch
gamemoderunwith anything - Unexpected:
/tmp/gm_testdoesn't exist
Expected behavior
$PWD/gamemode.ini should be read and merged with any other configurations.
System Info (please complete the following information):
- OS and version: Arch Linux
- GameMode Version: 1.7
I see that there are many LOG_foo calls in the code. How do I enable them to debug this?
I also noticed that gamemode is ignoring /usr/share/gamemode/gamemode.ini and /etc/gamemode.ini here, only respects my configs if I put the file at .config/gamemode.ini