In Trusty, the relevant code has been rewritten to use logind instead of 
consolekit:
http://bazaar.launchpad.net/~indicator-applet-developers/indicator-session/trunk.14.04/revision/388

But note that when invoking org.freedesktop.login1.Manager->CanPowerOff() from 
a remote session, its output is:
"challenge"
instead of "yes" that an active (local) session produces.

That means that when indicator-session calls
org.freedesktop.login1.Manager->PowerOff() with a "false" parameter to
prevent prompting, then PowerOff() does nothing.

So, indicator-session should either
1) Hide the actions that return "challenge", or
2) Enable the prompt when the action specified "challenge".

(2) would allow remote users to shutdown the server, so I think everyone
in this bug report prefer (1). :)

** Description changed:

- indicator-session's shutdown, hibernate etc menus should check via
- policykit if the user has enough rights to invoke them, otherwise they
- should be hidden or grayed-out.
+ indicator-session's shutdown, hibernate etc menus should check if the user 
has enough rights to invoke them, otherwise they should be hidden or grayed-out.
+ While some code for this already exists, it's not working correctly,
+ neither in 12.04 (consolekit)
+ nor in 14.04 (logind).
+ 
  
  [Original description]
  LTSP chroot client built with Ubuntu 9.10 Karmic shows Suspend, Hibernate, 
Restart and Shut Down in the logout menu 'indicator-applet-session'.  These 
options should not be available to LTSP Clients.  These options are not 
available with a 9.04 Jaunty built LTSP chroot.  Previous bug fix that removed 
these items is bug #282610.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/474392

Title:
  indicator-session menus are not policykit aware

To manage notifications about this bug go to:
https://bugs.launchpad.net/indicator-session/+bug/474392/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to