GNOME Bugzilla – Bug 698276
If long wait before 'Add' in Add account dialog, then lots of polkit prompts
Last modified: 2013-04-23 14:52:44 UTC
If you "Unlock" in the Users panel, then wait a long time before clicking 'Add' the polkit permissions expire. One gets lots of polkit prompts in a row, especially when adding an Enterprise Login. We should just reacquire permissions when the 'Add' button is clicked. Found on: https://fedoraproject.org/wiki/Test_Day:2013-04-18_FreeIPA
Created attachment 241834 [details] [review] user-accounts: Reacquire permissions before adding account If necessary, reacquire permissions before starting to add an account.
Patch tested on gnome-3-8, applies to master.
Review of attachment 241834 [details] [review]: Looks good to commit after the bug fixes below. Thanks! ::: panels/user-accounts/um-account-dialog.c @@ +50,3 @@ gpointer user_data); +static void um_account_dialog_response No need for the linefeed here, we have wide monitors. @@ +1100,3 @@ + g_return_if_fail (g_permission_get_allowed (self->permission)); + um_account_dialog_response (GTK_DIALOG (self), GTK_RESPONSE_OK); + unnecessary linefeed. @@ +1174,3 @@ if (self->cancellable) g_object_unref (self->cancellable); + if (self->permission) g_clear_object (&self->permission); @@ +1218,3 @@ self->cancellable = g_cancellable_new (); + if (self->permission) g_clear_object (&self->permission);
Attachment 241834 [details] pushed as dcc2814 - user-accounts: Reacquire permissions before adding account