This commit introduces support for inhibiting logind's default actions for power key press and lid close events. It adds a new module "logind.rs" which contains the necessary code to interact with logind using the zbus library. The main function is updated to setup logind inhibits when the application starts. To support these changes, zbus is added as a dependency to Cargo.toml and Cargo.lock. The debian control files are also updated to remove the logind-ignore-lidswitch and logind-ignore-powerkey packages as they are no longer required.
This commit introduces support for inhibiting logind's default actions for power key press and lid close events. It adds a new module "logind.rs" which contains the necessary code to interact with logind using the zbus library. The main function is updated to setup logind inhibits when the application starts. To support these changes,
zbus
is added as a dependency to Cargo.toml and Cargo.lock. The debian control files are also updated to remove the logind-ignore-lidswitch and logind-ignore-powerkey packages as they are no longer required.REFERENCE: https://www.freedesktop.org/wiki/Software/systemd/inhibit/