The solution I have implemented in lp:~robert-ancell/indicator-
session/lp-861171 resolves this issue by changing the session indicator
to disallow shutdown or restart if more than one session is open.

This resolves the greeter issue:
old: Shutdown/restart silently failed.
new: Information dialog appears "You need to close all sessions before 
restarting"

This changes the session behaviour:
old, non-administrator user: PolicyKit dialog appears prompting for 
administrator password, on authentication system is shutdown immediately, 
otherwise sessions is logged out.
old, administrator user: Shutdown/restart occurs immediately without any warning
new: Dialog appears saying "You need to close all sessions before restarting" 
and gives option to log out instead.

This doesn't resolve the following issues:
- Pressing the power button in the greeter doesn't show a dialog
- Pressing the power button in the session doesn't warn about other sessions 
being open (this dialog is from gnome-session). The behaviour is the same as in 
the old, non-administrator user case above.
- This means using the mouse you cannot do a system administrator override 
shutdown when multiple sessions are open. I don't see this as being a major 
problem as system administrators have other non-GUI methods of accessing this, 
you can still do this by pressing the power button (see above) or holding by 
power cycling.

I think this change is a marked improvement on what we have, and we can
continue to track improvements in other bugs. Given this I will close
out the other bug tasks not related to this solution.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/861171

Title:
  Shutdown from greeter does nothing when multiple accounts open

Status in The Session Menu:
  Triaged
Status in LightDM GTK+ Greeter:
  Triaged
Status in OEM Priority Project:
  In Progress
Status in OEM Priority Project precise series:
  In Progress
Status in Unity Greeter:
  Triaged
Status in “gnome-session” package in Ubuntu:
  Confirmed
Status in “indicator-session” package in Ubuntu:
  Triaged
Status in “policykit” package in Ubuntu:
  Confirmed
Status in “unity-greeter” package in Ubuntu:
  Triaged

Bug description:
  Selecting shutdown from the greeter does nothing when multiple
  accounts are open.

  This is because the lightdm user (which the greeter runs as) does not
  have permission to shutdown while sessions are open.  Inside a normal
  session this would just return you to the login screen.

  The solution is either for the indicator to say "not allowed" or to
  run a PolicyKit frontend in the greeter than can get the required
  permissions to perform the shutdown.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to