<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello folks,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am attempting to listen to the SessionRemoved signal from theĀ <a href="http://www.freedesktop.org/wiki/Software/systemd/logind/" target="_blank">login manager</a>. I have no trouble in the case where the user logs out and waits for ~15 seconds before shutting down, but when the user shuts down the system without first logging out I don't hear the SessionRemoved signal in time. I would've thought that inhibiting shutdown (by calling theĀ <a href="http://www.freedesktop.org/wiki/Software/systemd/inhibit/" target="_blank">Inhibit method of the login manager</a>) would be the appropriate way to keep my process alive long enough to record the SessionRemoved signal before my process gets killed. Apparently that is not the case though. I am fairly certain that I am actually inhibiting shutdown, because my process shows up when I call ListInhibitors in <a href="https://wiki.gnome.org/action/show/Apps/DFeet">D-Feet</a>. (In case it's relevant, I'm using the delay mode.) If anyone has any suggestions on how to debug this or knows what I am missing here, that would be greatly appreciated. Please let me know if I should be including additional details here; apologies in advance as this is my first time posting on this mailing list.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Be well,</div><div style="font-family:arial,sans-serif;font-size:13px">Kurt</div><div><br></div>
--<br>
<div dir="ltr"><span><span style="font-size:15px;font-family:Arial;color:rgb(183,183,183);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Kurt von Laven | Endless Mobile | </span><a href="http://endlessm.com/" style="text-decoration:none" target="_blank"><span style="font-size:15px;font-family:Arial;color:rgb(183,183,183);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">EndlessM.com</span></a></span><br>
</div>
</div>