login: Add KEY_RESTART handling

System Internals / systemd - Robert Marko [sartura.hr] - 9 September 2020 16:40 UTC

KEY_RESTART is widely used in Linux to indicate device reboot. So lets handle it in the same fashion as KEY_POWER.

adbb2b6afe login: Add KEY_RESTART handling
man/logind.conf.xml | 26 ++++++++++++++++----------
src/login/logind-button.c | 25 ++++++++++++++++++++-----
src/login/logind-core.c | 4 ++++
src/login/logind-dbus.c | 1 +
src/login/logind-gperf.gperf | 2 ++
src/login/logind-inhibit.c | 14 +++++++++++++-
src/login/logind-inhibit.h | 3 ++-
src/login/logind.conf.in | 2 ++
src/login/logind.h | 2 ++
src/login/org.freedesktop.login1.policy | 11 +++++++++++
src/systemd/sd-messages.h | 2 ++
11 files changed, 75 insertions(+), 17 deletions(-)

Upstream: github.com


  • Share