APPLIED: [PATCH 2/2] Check that we are at least using glib that supports logind

Keng-Yu Lin keng-yu.lin at canonical.com
Fri Sep 5 06:18:10 UTC 2014


On Wed, Sep 3, 2014 at 11:15 PM, Colin King <colin.king at canonical.com> wrote:
> 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
>
>
> --
> fwts-devel mailing list
> fwts-devel at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/fwts-devel



More information about the fwts-devel mailing list