After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 631761 - drop status icon use
drop status icon use
Product: policykit-gnome
Classification: Platform
Component: authentication dialog
Other Linux
: Normal normal
: ---
Assigned To: policykit-gnome-maint
Depends on:
Reported: 2010-10-09 15:12 UTC by William Jon McCann
Modified: 2011-02-09 21:41 UTC
See Also:
GNOME target: 3.0
GNOME version: ---

Don't use a status icon for temporary authorizations (6.68 KB, patch)
2010-10-27 23:20 UTC, William Jon McCann
none Details | Review

Description William Jon McCann 2010-10-09 15:12:51 UTC
GNOME 3 will discourage status icon use.  GNOME core components should generally either provide UI through the shell directly (system status indicator, system modal, etc) or use libnotify.  PolicyKit currently uses a status icon when it has temporary authorizations.  I think we should probably just drop this for now and possibly show something in a System Settings panel at some point if it is necessary.

Also see
Comment 1 William Jon McCann 2010-10-27 23:20:18 UTC
Created attachment 173365 [details] [review]
Don't use a status icon for temporary authorizations

GNOME 3 won't be supporting status icons.
Comment 2 William Jon McCann 2010-10-27 23:20:37 UTC
David, what is the best way to test this?
Comment 3 David Zeuthen (not reading bugmail) 2010-10-28 13:52:10 UTC
(In reply to comment #2)
> David, what is the best way to test this?

Insure the polkit-devel package is installed, then just run

 $ pkexec pk-example-frobnicate
Comment 4 Christoph Wickert 2011-02-09 11:33:55 UTC
What is the way do drop temporarily gained priviliges now?
Comment 5 Matthias Clasen 2011-02-09 20:00:14 UTC
You can

a) wait until they time out

b) run gdbus call --system --dest org.freedesktop.PolicyKit1 --object-path /org/freedesktop/PolicyKit1/Authority --method org.freedesktop.PolicyKit1.Authority.RevokeTemporaryAuthorizations "( 'unix-session', { 'session-id' : < '/org/freedesktop/ConsoleKit/Session3' > } )"

with your session id

c) wait until the screensaver has been taught to do that and lock your screen
Comment 6 Christoph Wickert 2011-02-09 20:45:57 UTC
None of that sounds really convincing, especially not c) as it only works with gnome-screensaver.
Comment 7 Matthias Clasen 2011-02-09 21:41:19 UTC
oh, I forgot

d) write your own authentication agent if you are unhappy with the one GNOME provides you for free...