Remain in background when not needed anymore
Using 1.5.1 on current Ubuntu
- start a GNOME session, check that gamemode isn't started
- start a game or the helper script, the service is dbus activated
- exit the progam, wait, the service stays active
It would be nice if the service would auto-exit when not needed anymore
The daemon itself should probably have some idle timeout... It probably won't work well with systemd StopWhenUnneeded= (if that works at all for dbus activation) as it may quit midair in a game, either leaving optimizations in place or turning them off.
I'm not sure if we'd need to prevent any dbus activation races wihen implementing an idle timeout. Does it really hurt so much to leave it running? It just sits idle in the background and hardly uses any resources.
On the resources note, if it measures at any impactful amount of background resources when idle then I'd consider that the bug to be fixed. I purposely made this thing as low profile as possible, so if anything slipped through, let's fix it.