summaryrefslogtreecommitdiff
path: root/src/login/loginctl.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-02-01 08:48:13 +0100
committerSven Eden <yamakuzure@gmx.net>2017-03-14 10:23:13 +0100
commite19b8719a54c343372e16b462c27f1e84c987b85 (patch)
treec282d4e5d33330d0b6516f5d2274f053b7abe31f /src/login/loginctl.c
parent059696ac014da265ee2d1b062cd0dc7bee3d2001 (diff)
Handle suspend, shutdown, reboot, etc within elogind
Since we are catching the keys, we might as well just do suspend/reboot/etc handling here. * configure.ac: Get paths of halt and reboot. * Makefile.am (systemsleepdir, systemshutdowndir): New variables. Look in them for hooks to run. * src/login/logind-action.c: Inline the salient bits from systemd's sleep/sleep.c here. * src/login/logind-dbus.c (execute_shutdown_or_sleep): Call our own shutdown_or_sleep helper instead of invoking a systemd method. * src/login/logind-action.h: Declare shutdown_or_sleep.
Diffstat (limited to 'src/login/loginctl.c')
0 files changed, 0 insertions, 0 deletions