Many instances of nm-applet loaded in Xfce panel

Bug #47825 reported by dale gallagher
18
Affects Status Importance Assigned to Milestone
Network Manager Applet
Invalid
Medium
network-manager-applet (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: network-manager

When nm-applet is added to the Xfce panel at first, only a single instance of it appears, as expected. However, when logging out and back in again, 5 instances of the applet are loaded. Xfce is setup to start GNOME services on session initiation. Ubuntu Dapper, up-to-date as of 2006-05-31.

Revision history for this message
dale gallagher (zoot) wrote :

This may have something to do with another issue, where the user is prompted quite regularly to re-enter the GNOME key-ring password in order to connect to a wireless network.

Revision history for this message
dale gallagher (zoot) wrote :

network-manager 0.6.2-0ubuntu7
xfce4-panel_4.3.90.1svn+r21633-0ubuntu2

Revision history for this message
Simon Ruggier (simon80) wrote :

Try running nm-applet --sm-disable, if you aren't already. nm-applet in gnome likes to add itself to the session as restart, so it'll get restarted automatically, and it doesn't make sure it's the only instance running.

Revision history for this message
Scott Robinson (scott-ubuntu) wrote :

Did running nm-applet as instructed fix the issue? Isn't this a bug in the xfce4 panel anyway?

Changed in network-manager:
status: Unconfirmed → Needs Info
Revision history for this message
dale gallagher (zoot) wrote :

Unfortunately not.

nm-applet is the only applet with the multiple instance issue under Xfce (as far as I'm aware). All other GNOME specific applets (which I've used under Xfce) run perfectly.

Revision history for this message
John Chee (chee) wrote :

Package: network-manager-gnome
Version: 0.6.3-2ubuntu6

Package: xfce4-panel
Version: 4.3.99.1-0ubuntu1

ps ax | grep nm-applet

 5027 ? S 0:00 nm-applet --sm-config-prefix /nm-applet-vTRGo9/ --sm-client-id 117f000001000116398245600000046790002 --screen 0
 5031 ? S 0:00 nm-applet --sm-config-prefix /nm-applet-22BSpC/ --sm-client-id 117f000001000116398159800000047980007 --screen 0
 5036 ? S 0:00 nm-applet --sm-config-prefix /nm-applet-wCw2DC/ --sm-client-id 117f000001000116398153200000047980006 --screen 0
 5038 ? S 0:00 nm-applet --sm-config-prefix /nm-applet-Gvg2GC/ --sm-client-id 117f000001000116398152300000047980005 --screen 0
 5040 ? S 0:00 nm-applet --sm-config-prefix /nm-applet-MyJ0zC/ --sm-client-id 117f000001000116398142700000047980004 --screen 0
 5046 ? S 0:00 nm-applet --sm-config-prefix /nm-applet-ccK3BC/ --sm-client-id 117f000001000116398202100000046810002 --screen 0
 5049 ? S 0:00 nm-applet --sm-config-prefix /nm-applet-mXHWvC/ --sm-client-id 117f000001000116398171000000047980008 --screen 0

Revision history for this message
tactus (tactusetc) wrote :

Not an explanation on why this is happening, but logging out and "rm ~/.cache/sessions/*" solved it for me. Unfortunately I didn't back up the cache files before removing them.

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

I have the same issue in the GNOME panel after upgrading from Feisty to Gutsy a few days ago. I do run nm-applet --sm-disable.

Regarding the previous comment: I don't have a ~/.cache/sessions/. There is nothing in ~/.cache except a directory created by thoggen (DVD ripper).

Revision history for this message
Mario Vukelic (kreuzsakra) wrote :

Ah, got it: the nm-applet is listed in ~/.gnome2/session several times. Attached.

Revision history for this message
Alexander Sack (asac) wrote :

nm-applet has now its own source package ... reassigning accordingly.

 - Alexander

Revision history for this message
reliable-robin-22 (nicolasdiogo) wrote :

thanks for the tip

 Mario Vukelic
 * GNOME session file (7.4 KiB, text/plain)

Ah, got it: the nm-applet is listed in ~/.gnome2/session several times. Attached.

i was having network problem and network manger misbehaved, thus i killed the application and invoked it from the command line and it has since start with two instances of nm-applet.

just deleted the one entry from the session file and it works fine,

thanks for sharing this info.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for network-manager-applet (Ubuntu) because there has been no activity for 60 days.]

Revision history for this message
Alexander Sack (asac) wrote :

reopening.

Changed in network-manager-applet:
status: Invalid → Confirmed
Revision history for this message
Alexandre Campo (alexandre-campo) wrote :

I have exactly the same problem with Gutsy. And no session directory in .gnome2 ...

Revision history for this message
Alexandre Campo (alexandre-campo) wrote :

Ok I could fix that by :
0. menu->autostarted applications, uncheck network manager, close
1. killall nm-applet
2. rm -rf ~/.cache/sessions
3. log out (don't save session)
4. log in
5. now I don't have any nm-applet. Go to autostarted apps, add network manager
6. logout, save session
7. login -> I have one instance of nm-applet running fine.

Revision history for this message
Endolith (endolith) wrote :

I have the same problem. I see three intances of the icon on the panel, and three instances of "nm-applet" in my GNOME sessions information ("Preferences --> Sessions"). Two with "-sm-config-prefix" and one with "-sm-disable".

Revision history for this message
Endolith (endolith) wrote :

I removed all three from the Current Session in the session manager and saved changes. When I logged out and logged back in again, it only had one present, with "--sm-disable".

Revision history for this message
Miguel Martinez (el-quark) wrote :

I was on the verge of opening a new bug basically related to this one. Shouldn't nm-applet check there are other instances of it already running?

One might make a case that Ubuntu is a multiuser operating system, in which having several users with that applet loaded is a real possibility. In this cas, however, it could check that $USER is already running nm-applet, and thus not loading again. Comments?

Revision history for this message
Riccardo Magliocchetti (riccardo) wrote :

Found this bugreport today, i've the same issue and i've already opened two bugs upstream:

http://bugzilla.gnome.org/show_bug.cgi?id=527998

http://bugzilla.xfce.org/show_bug.cgi?id=4014

Changed in network-manager-applet:
status: Unknown → New
Changed in network-manager-applet:
status: New → Invalid
Revision history for this message
Alexander Sack (asac) wrote :

should be gone by now. at some point we shipped autostart file at two locations. thats not done anymore.

Changed in network-manager-applet:
status: Confirmed → Invalid
Changed in network-manager-applet:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.