← Back to team overview

desktop-packages team mailing list archive

[Bug 855556] Re: "Restart" and "Shut Down" don't work if anyone else is logged in

 

Huh, I assumed this was just a regression, not something that would need
design work.

The design is fairly simple, though it would require one new string.
There should be a PolicyKit permission for shutting down (including
restarting) while other people are logged in, and only admins should
have it. So if you choose either command while other accounts are logged
in, you should get a PolicyKit dialog saying "Other user accounts are
logged in. Shutting down before they log out may cause them to lose
work. To continue, you need to authenticate."

That would answer all three questions: the dialog would be the thing
warning you, if you weren't an admin you'd need an admin to authenticate
for you, and that means the dialog could appear regardless of whether
the active user account is an admin.

-- 
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/855556

Title:
  "Restart" and "Shut Down" don't work if anyone else is logged in

Status in “gnome-session” package in Ubuntu:
  Confirmed

Bug description:
  gnome-session 3.1.91-0ubuntu2, lightdm 0.9.7-0ubuntu1, indicator-
  session 0.3.5.1-0ubuntu1, Ubuntu 11.10 beta

  1. Start up the computer.
  2. At the login screen, choose "Restart", and confirm it.
  3. Log in.
  4. From the device menu, choose "Restart", and confirm it.
  5. Log in again.
  6. Switch to a guest session.
  7. Switch back to your user account.
  8. From the device menu, choose "Restart", and confirm it.
  9. From the login screen, choose "Restart", and confirm it.

  What happens:
  2. The computer restarts.
  4. The computer restarts.
  8. Ubuntu returns to the login screen.
  9. Nothing at all.

  What should happen:
  2. The computer restarts.
  4. The computer restarts.
  8. The computer restarts.
  9. The computer restarts.

  The same problem happens with "Shut Down". At a terminal, "sudo
  reboot" and "sudo shutdown" work as expected.

  See also bug 838792, where "Restart" logs out with no-one else logged
  in (that bug does not occur for me). While testing this bug I also
  triggered bug 740382.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/855556/+subscriptions


References