[PATCH 2/2] Check that we are at least using glib that supports logind
Colin King
colin.king at canonical.com
Wed Sep 3 15:15:16 UTC 2014
From: Colin Ian King <colin.king at canonical.com>
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/lib/src/fwts_pm_method.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/lib/src/fwts_pm_method.c b/src/lib/src/fwts_pm_method.c
index 9aed8b1..00f870b 100644
--- a/src/lib/src/fwts_pm_method.c
+++ b/src/lib/src/fwts_pm_method.c
@@ -170,6 +170,9 @@ static bool logind_can_do_action(fwts_pm_method_vars *fwts_settings, const char*
bool status = false;
gchar *response;
+ if (glib_check_version(2, 26, 0) != NULL)
+ return false;
+
if (fwts_logind_init_proxy(fwts_settings) != 0)
return false;
--
2.1.0
More information about the fwts-devel
mailing list