# Description: If PolicyKit cannot be initialized, just disable support for it, do not fail completely. # Ubuntu: https://launchpad.net/bugs/275432 # Upstream: https://bugs.freedesktop.org/show_bug.cgi?id=20876 Index: consolekit-0.3.0/src/ck-manager.c =================================================================== --- consolekit-0.3.0.orig/src/ck-manager.c 2009-03-26 10:01:51.000000000 +0100 +++ consolekit-0.3.0/src/ck-manager.c 2009-03-26 10:04:24.000000000 +0100 @@ -2519,8 +2519,9 @@ manager->priv->pol_ctx = polkit_context_new (); polkit_context_set_io_watch_functions (manager->priv->pol_ctx, pk_io_add_watch, pk_io_remove_watch); if (! polkit_context_init (manager->priv->pol_ctx, NULL)) { - g_critical ("cannot initialize libpolkit"); - return FALSE; + g_warning ("cannot initialize libpolkit, some functionality will not be available"); + polkit_context_unref (manager->priv->pol_ctx); + manager->priv->pol_ctx = NULL; } #endif