An established connection path for the login manager, through which the API is made accessible.
Inhibit is the only API necessary to take a lock. It takes four arguments:
- What is a colon-separated list of lock types, i.e.
handle-lid-switch. Example: "shutdown:idle"
- Who is a human-readable, descriptive string of who is taking the lock. Example: "Package Updater"
- Why is a human-readable, descriptive string of why the lock is taken. Example: "Package Update in Progress"
- Mode is one of
A root user session cannot use systemd inhibitors.
Convenience method for inhibiting suspend.
connection.inhibit("idle:shutdown:sleep", who, why, "block").
The type returned in the event of a conversion error.