On Wed, Dec 9, 2015 at 10:20 PM, Troels Mæhl Folke < [email protected]> wrote:
> Hello, > > I've had problems getting systemd-logind to respect shutdown inhibitors > when > I ask it over DBus to power off or reboot. > > Here is what I've tried: > > In one gnome-terminal as non-root, I type: > > systemd-inhibit --what=shutdown --mode=block --who=unison unison-gtk2 > > ...to set up the inhibitor. > Then next, in another gnome-terminal - also as non-root - I type: > > busctl call org.freedesktop.login1 /org/freedesktop/login1 \ > org.freedesktop.login1.Manager PowerOff b true > AFAIK, inhibitors from the same user are ignored (which to be honest makes them not very useful), and systemctl merely checks them manually. (You might find gnome-session-inhibit useful; it tells GNOME itself to avoid shutting down.) -- Mantas Mikulėnas <[email protected]>
_______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
