Patch from http://bugzilla.xfce.org/show_bug.cgi?id=9952 with modification to edit configure.ac (release tarball) instead of configure.ac.in (git) From ee2228c756e40a4289476f40a6d0045d17418bce Mon Sep 17 00:00:00 2001 From: Eric Koegel Date: Thu, 29 May 2014 19:17:26 +0300 Subject: [PATCH] Add suspend/hibernate to shutdown-helper Upower 0.99 dropped support for suspend/hibernate as an obsolete feature in this commit: http://cgit.freedesktop.org/upower/commit/?id=1ee642e705a63f5ad56a6b55e4bf5c4a64c959b8 Add that functionality into the shutdown-helper so these features will work again. --- configure.ac.in | 27 +++++++++ xfce4-session/Makefile.am | 4 +- xfce4-session/xfsm-shutdown.c | 126 ++++++++++++++++++++++++++++++++++++++++-- xfce4-session/xfsm-upower.c | 5 +- xfce4-session/xfsm-upower.h | 4 ++ xfsm-shutdown-helper/main.c | 26 +++++++++ 6 files changed, 186 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 910fd35..d4557a4 100644 --- a/configure.ac +++ b/configure.ac @@ -95,6 +95,7 @@ XDT_CHECK_PACKAGE([LIBWNCK], [libwnck-1.0], [2.30]) XDT_CHECK_PACKAGE([DBUS], [dbus-1], [1.1.0]) XDT_CHECK_PACKAGE([DBUS_GLIB], [dbus-glib-1], [0.84]) XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.9.0]) +XDT_CHECK_PACKAGE([UPOWER],[upower-glib], [0.9.8]) dnl Check for polkit / systemd integration XDT_CHECK_OPTIONAL_PACKAGE([SYSTEMD], [polkit-gobject-1], [0.100], @@ -157,6 +158,31 @@ if test "x$linux_ioprio_works" = "xyes"; then [Defined if linux/ioprio.h not only exists, but works properly]) fi +dnl Compile time default choice of backend +AC_ARG_WITH([backend], + AS_HELP_STRING([--with-backend=