I had the same bug, and in my case, I manually stopped the plexmediaserver (which I had manually installed) before trying to shutdown. This solved the problem. My guess is that there is a daemon process running as a user that gnome-session sees as being logged in. I'm not sure how gnome-session determines which user sessions are safe to terminate, but stopping this process let my machine shutdown and reboot normally.
I'm not really sure this is a bug with gnome-session so much as it is a bug with other packages starting daemons that show up as actual users. -- 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/838792 Title: "Restart" logs out, even when there are no other people logged in Status in The Session Menu: Invalid Status in Unity Foundations: Invalid Status in “gnome-session” package in Ubuntu: Confirmed Bug description: Trying to restart the computer from within a unity session causes the session to log out, instead of actually restarting the computer. 1. Boot up oneiric 2. Log in 3. Click on the Power button obscured by a tiny gear on the top and far right of the screen 4. Click "Shutdown..." 5. When asked, "Are you sure you want to close all programs and shut down the computer?", select "Restart" (it's on the bottom left of the dialog) Instead of restarting, you will be logged out. ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: indicator-session 0.3.3.2-0ubuntu1 ProcVersionSignature: Ubuntu 3.0.0-9.15-generic 3.0.3 Uname: Linux 3.0.0-9-generic x86_64 Architecture: amd64 Date: Thu Sep 1 13:52:22 2011 EcryptfsInUse: Yes ProcEnviron: PATH=(custom, user) LANG=en_AU.UTF-8 SHELL=/bin/bash SourcePackage: indicator-session UpgradeStatus: Upgraded to oneiric on 2011-07-26 (37 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-session/+bug/838792/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

