In jockey/ui.py , the exception is handled, in a 'try' block, like this:
except PermissionDeniedByPolicy:
self.error_msg(self.string_unprivileged)
return False
Twice, at different points in the code:
http://bazaar.launchpad.net/~ubuntu-core-dev/jockey/ubuntu/view/head:/jockey/ui.py#L508
http://bazaar.launchpad.net/~ubuntu-core-dev/jockey/ubuntu/view/head:/jockey/ui.py#L677
self.string_unprivileged is earlier defined as 'You are not authorized
to perform this action.'
I don't yet see where the error_msg method is defined or inherited, just
places where it's called. Jockey is built with GUI and text modes, so
it's a general mechanism. software-properties is just GUI, and defines
error dialogs in a couple places, so I'm not yet sure what a patch
should look like.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/828850
Title:
software-properties-gtk crashed with DBusException in call_blocking():
com.ubuntu.SoftwareProperties.PermissionDeniedByPolicy:
com.ubuntu.softwareproperties.applychanges
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/828850/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs