This patch isn't necessary any more with the polkit 1.0 update. That does:
#ifdef HAVE_POLKIT - 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; - } + manager->priv->pol_ctx = polkit_authority_get (); #endif
I. e. it already removed the g_critical()/return FALSE, which is sort of what my previous patch was doing as well. Since the polkit patch was committed now (thanks!), I close this bug.
This patch isn't necessary any more with the polkit 1.0 update. That does:
#ifdef HAVE_POLKIT >priv-> pol_ctx = polkit_context_new (); context_ set_io_ watch_functions (manager- >priv-> pol_ctx, pk_io_add_watch, pk_io_remove_ watch); >priv-> pol_ctx, NULL)) { >priv-> pol_ctx = polkit_ authority_ get ();
- manager-
- polkit_
- if (! polkit_context_init (manager-
- g_critical ("cannot initialize libpolkit");
- return FALSE;
- }
+ manager-
#endif
I. e. it already removed the g_critical()/return FALSE, which is sort of what my previous patch was doing as well. Since the polkit patch was committed now (thanks!), I close this bug.