chiark / gitweb /
Handle suspend/hibernate/hybrid-suspend/shutdown/reboot directly
authorAndy Wingo <wingo@pobox.com>
Sun, 23 Aug 2015 12:54:39 +0000 (14:54 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:15:07 +0000 (10:15 +0100)
commit24aa8c70860838af5c1dbfc81131888a4865d16c
tree7af29181ddb6c30bdac5afcea8f8d15dbde03ee0
parentd8a143df482f72fcbd408ffaef5c34aea6cdd655
Handle suspend/hibernate/hybrid-suspend/shutdown/reboot directly

* 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
  system-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.h: Declare shutdown_or_sleep.
src/login/logind-action.c
src/login/logind-dbus.c
src/login/logind.h