diff options
author | Robert Marko <robert.marko@sartura.hr> | 2020-08-14 13:10:18 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-09-09 18:40:13 +0200 |
commit | adbb2b6afed7858f64f5b940579f6efe79eee997 (patch) | |
tree | bf44a5dd0845afaa7a9f2346c2e793b75150ea18 /src/login/logind-dbus.c | |
parent | 6e220b4b881eab303b23e2c7da595f25601ec642 (diff) | |
download | systemd-adbb2b6afed7858f64f5b940579f6efe79eee997.tar.gz |
login: Add KEY_RESTART handling
KEY_RESTART is widely used in Linux to indicate device reboot.
So lets handle it in the same fashion as KEY_POWER.
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Diffstat (limited to 'src/login/logind-dbus.c')
-rw-r--r-- | src/login/logind-dbus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 71156e610c..50fb5b8a85 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -3240,6 +3240,7 @@ static int method_inhibit(sd_bus_message *message, void *userdata, sd_bus_error w == INHIBIT_IDLE ? "org.freedesktop.login1.inhibit-block-idle" : w == INHIBIT_HANDLE_POWER_KEY ? "org.freedesktop.login1.inhibit-handle-power-key" : w == INHIBIT_HANDLE_SUSPEND_KEY ? "org.freedesktop.login1.inhibit-handle-suspend-key" : + w == INHIBIT_HANDLE_REBOOT_KEY ? "org.freedesktop.login1.inhibit-handle-reboot-key" : w == INHIBIT_HANDLE_HIBERNATE_KEY ? "org.freedesktop.login1.inhibit-handle-hibernate-key" : "org.freedesktop.login1.inhibit-handle-lid-switch", NULL, |