In trusty two network settings indicators come up in system tray

Bug #1256434 reported by Brendan Perrine on 2013-11-29
76
This bug affects 17 people
Affects Status Importance Assigned to Milestone
lxpanel (Ubuntu)
Undecided
Unassigned

Bug Description

http://paste.ubuntu.com/6496095/ is hardware info This is on the trusty i386 and was installed with alternate installer. Also trying to remove the system tray and add it back agian doesn't fix it.

I expected there to be one network indicator applet in virtualbox instead there were two of them.

Using lxpanel 0.6.1-ubuntu1

Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1256434

tags: added: iso-testing
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lxpanel (Ubuntu):
status: New → Confirmed
Lars Noodén (larsnooden) wrote :

This is also present in the PPC Desktop image during the Live session.

Brendan Perrine (walterorlin) wrote :

I found what I think is a workaround for this problem Launch default applications for LXSeisson Go to the entry for network manager Gui and select no in the drop down box of options log out and log back in. Then only one network manager show up in network applets. Although this workaround doesn't work when logging into openbox and then starting lxpanel it will still show two network manager applets.

Phill Whiteside (phillw) wrote :

Hi, I've spent some time with melodie to sort this out. Sadly, we do not have a fix. But, it is an alive bug and ianorlin will get in touch, we may be able to progress it.

Mélodie (meets) wrote :
Download full text (3.9 KiB)

Hi,

I have done the research by myself later and found out that the guilty is precisely what ianorlin pointed to: the program "Default Applications for LXSession" which is in the "Menu > Preferences" menus. Or rather should I say, the default choices done there, and the default choices done times before it exists.

Here are the explanations:
What I already knew, is that nm-applet is usually started from a desktop file which is located under /etc/xdg/autostart : all desktop files located in that directory contain the "Exec=" line which is executed at the start of a session using Openbox (it can be lxde-openbox, gnome-openbox, or kde-openbox), provided that python-xdg is installed, and provided that another script, located in Ubuntu under /usr/lib/i386-linux-gnu/, the openbox-xdg-autostart python script is called (from another file located nearby or somewhere else in the system, I spare you this part).

So what we have in Lubuntu Trusty is simply a nm-applet which is started once by openbox-xdg-autostart, and once again by "/usr/bin/lxsession -s Lubuntu -e LXDE" (seen, not in the TV, but inside htop started in the console).

Maybe you wonder what that is about? I have done in console "lxsession --help" and found that the option '-s' is for the name of the session, and the '-e' is for the desktop environment.

What else was missing my dear Watson? :p

The name of the guilty file of course. To find it, I went into Synaptic, sought for all lubuntu packages name and descriptions and thought oh, a lubuntu-default-settings package! What's in there? I had a look at the list of files and from there, found the file which is under /home/melodie/.config/lxsession/Lubuntu, opened the file "desktop.conf" in Leafpad, and I could admire all the entries especially the ones default configured to be started at same time as the user session.

I did a copy of the file, removed the line related to nm-applet, did a logout/login: only one icon left. Then I remember what ianorlin found about the "Default Applications for LXSession" gui, and I changed from "nothing" to "nm-applet", the nm-applet line re appeared in the ~/.config/lxsession/Lubuntu/desktop.conf file.

The last thing I retried which phillw had already tried while we were talking about this on IRC, was removing the python-xdg package which is supposed to be what is needed for openbox-xdg-autostart to work: but well, removing it does not prevent the 2 icons from appearing, if the nm-applet.desktop file is still in the $PATH, and if the Lubuntu desktop.conf file still has instructions to start it. But if I remove nm-applet.desktop from the way, and leave just the one configured by the "Default Applications for LXSession" gui, then the icon appears once only. One mystery is still there: who can tell me what is the process which starts the programs whose desktop files are in /etc/xdg/autostart? The winner will earn the right to test the next Lubuntu Trusty Beta! \o/ !

All this can also lead further to the applications default started with openbox-xdg-autostart : other desktop files can be found in /etc/xdg/autostart, such as gnome-polkit-authentication-agent-1.desktop. And indeed it is started. And also l...

Read more...

This bug affects me in lubuntu 13.10 install when I removed the nm-applet by accident. When I re-added it, I had two icons in tha tray.

Brendan Perrine (walterorlin) wrote :

One workaround if you are bothered by having two is lxtask can terminate one of them and then only oen appears.

purpleoptic (spacefighter209) wrote :

By killing it in lxtask it just loads another

Brendan Perrine (walterorlin) wrote :

On the latest daily image for 1-27 it only loaded one network manager.

Brendan Perrine (walterorlin) wrote :

But is in the live seisson on what is now todays seisson wonder if it is only guest for some reason.

Brendan Perrine (walterorlin) wrote :

Fixed in latest trusty daily in live seisson wehn it wasn't before.

Markcortbass (markcortbass) wrote :

I have one network icon with a fresh daily build of ubuntu 14.04. But after installing unity8-desktop-session-mir for testing, there are again 2 icons.
http://www.omgubuntu.co.uk/2014/02/unity-8-desktop-preview-session-14-04

Icon 1 : http://ubuntuone.com/1OMiwUGNXBFeMNUJ7BWHh8
Icon 2: http://ubuntuone.com/7SelgrqVhGaTWo3PiFeujf

Michał Sawicz (saviq) wrote :

That's because unity8 is using the next-gen network-indicator, which did not yet replace nm-applet for the desktop. Removing network-indicator will get rid of the second icon.

Nekhelesh Ramananthan (nik90) wrote :

@Michal Sawicz, the bug is reproducible *without* having unity8-desktop-session-mir installed as well. I get it on my Trusty with the Phablet and the Core apps PPA added to my system. It is confusing to have two network indicators show up.

Jb (jebsolutions) wrote :

I installed Lubuntu 17.04 Alpha 2017-January-25th version.

The bottom taskbar has two network applet icons.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers