diff options
author | Eric Koegel <eric.koegel@gmail.com> | 2014-11-03 07:54:41 +0300 |
---|---|---|
committer | Eric Koegel <eric.koegel@gmail.com> | 2015-02-14 16:28:01 +0300 |
commit | 555268f2c2f7fb94774c863dc3108f9e4010f6a2 (patch) | |
tree | 770ceed74fbb8d4a0d873bec8ebab5772f13f3cc /common | |
parent | bc3a4adb249015a3cce5726e6ada89faf1231c21 (diff) | |
download | ixfce4-power-manager-555268f2c2f7fb94774c863dc3108f9e4010f6a2.tar.gz |
Add support for ConsoleKit2
ConsoleKit2 implements the suspend/hibernate DBUS API. This patch
uses it if ConsoleKit2 is running and reports the system as capable
of suspend or hibernate.
Diffstat (limited to 'common')
-rw-r--r-- | common/xfpm-power-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/xfpm-power-common.h b/common/xfpm-power-common.h index a18f4865..58b13337 100644 --- a/common/xfpm-power-common.h +++ b/common/xfpm-power-common.h @@ -42,6 +42,8 @@ #define POLKIT_AUTH_SUSPEND_XFPM "org.xfce.power.xfce4-pm-helper" #define POLKIT_AUTH_HIBERNATE_XFPM "org.xfce.power.xfce4-pm-helper" +#define POLKIT_AUTH_SUSPEND_CONSOLEKIT2 "org.freedesktop.consolekit.system.suspend" +#define POLKIT_AUTH_HIBERNATE_CONSOLEKIT2 "org.freedesktop.consolekit.system.hibernate" const gchar *xfpm_power_translate_device_type (guint type); |