Gunnar Hjalmarsson [2012-12-31 14:27 -0000]: > If we can't make polkit provide the desired information without real > authentication attempts
This is possible. The polkit API has a flag to enable/disable interactivity, depending on which you either get a "no, but you can authenticate", or a "yes" answer. You can see this on the command line with pkcheck --action-id com.ubuntu.languageselector.setsystemdefaultlanguage --process $$ if you additionally specify --allow-user-interaction, you'll get the password dialog instead. > Then, when giving a user admin privileges without using the "sudo" or > "admin" unix group, changing the value of the gsettings key for that > user would prevent the buttons in question from being greyed out. Please let's not do that. Being an admin or not is not a configuration matter, polkit already knows that. Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1008344 Title: checks "admin" group membership instead of querying polkit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/language-selector/+bug/1008344/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
