Hi, it seems that the logic for handling logind inhibitions is completely backward. The keys are named logind-handle-<foo> (and default to TRUE) which seems to indicate that *logind* does the job, not xfce4-power-manager. But when actually adding inhibitors, the code (http://git.xfce.org/xfce/xfce4-power-manager/tree/src/xfpm-manager.c#n502) actually does the opposite: if the key is true, then xfpm considers that it has to do the job, and adds a dbus inhibitor. That's completely confusing. Either the key names have to be changed, or the logic.
Created attachment 5614 invert the logind xfconf keys logic This patch should fix the issue, I guess. It sets the default keys to FALSE, and then only add the inhibits if the current keys are FALSE.
Created attachment 5615 invert the logind xfconf keys logic New version which also updates the variable names for more clarity.
Ping?
Simon and Sean were working on this so I'll let them take the lead :)
(In reply to Yves-Alexis Perez from comment #2) > Created attachment 5615 > invert the logind xfconf keys logic > > New version which also updates the variable names for more clarity. This patch seems to make sense of it all. Please apply it going forward.
Thanks, pushed the fix to master. http://git.xfce.org/xfce/xfce4-power-manager/commit/?id=03193df6cad651841e8d9960335b4a3bf13afdad