nm-applet not started; options "shutdown" and "reboot" missing

Asked by Lysathor

Two weeks ago I installed lubuntu 11.04 and it worked fine.
A few days ago (probably after a sw update via apt-get upgrade) it happened that after turning on the laptop there are 2 problems:

(1) nm-applet is not running (I now have to start it manually via "sudo nm-applet" to get it working (only nm-applet does not work); but I have to re-enter the wpa key every time I do this (key ring seems not to be used, perhaps because of sudo?))

(2) in the shutdown dialog (press shutdown icon in toolbar) there are no options "shutdown" or "reboot" (I now have to use "sudo shutdown"). The only options are "suspend", "hibernate", "logout", "cancel".

Is there a way to get it working like before?
I re-installed lubuntu 11.04 and I installed a few programs. All worked fine. Meanwhile I updated the software (via apt-get). But now the problems (1) and (2) were back....

The same problem occured on another laptop (different hardware).

About my config:
lubuntu 11.04, auto logon, using default keyring for wifi (key ring with empty passphrase, because that is required for auto logon to avoid nasty asking the wifi passphrase).

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-nettool Edit question
Assignee:
No assignee Edit question
Solved by:
Lysathor
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You don't run graphical apps with sudo, use gksudo
You don't run nm-applet with ANY sudo at all, your user can run it.

If you are using gnome then you can reset the panels to default with:

gconftool --recursive-unset /apps/panel && killall gnome-panel

HTH

Revision history for this message
Lysathor (lysathor) said :
#2

About using sudo: without sudo I could not get nm-applet running, I got error messages:
1) Could not acquire the NetworkManagerUserSettings service
2) ... is not allowed to own the service "org.freedesktop.NetworkManagerUserSettings" due to security policies in the configuration file.

about gconftool:
no change after execution of the tool

Revision history for this message
Lysathor (lysathor) said :
#3

Searching the internet I found that similar problems exist since 2007, but the solutions provided did not help.
Event editing /etc/dbus-1/system.d/NetworkManger.conf (copy root section to current user) did not help.

With a bunch of updates I installed today (using UpdateManager) it seems that the problems have been solved by the updates. Shutdown & Reboot are again available and the tray icon of nm-applet is visible again.

So my conclusion is that there was a buggy update that now has been fixed.