! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
multiple instances of auto started applications started at login
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-session
Component:
General

Comments

Description Riccardo Magliocchetti 2008-04-14 10:28:50 CEST
Every time i login i get 6 or so nm-applet (from NetworkManager) running. The same happens if i logout without any of them running.

No differences with "Launch Gnome services on startup" set or not.
Comment 1 Riccardo Magliocchetti 2008-04-29 11:29:00 CEST
FIY the same bug in ubuntu launchpad:

https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/47825
Comment 2 Riccardo Magliocchetti 2008-04-29 11:43:52 CEST
Created attachment 1609 
session file from ~/.cache/sessions

This is where the multiple nm-applet come from, HTH
Comment 3 Brian J. Tarricone (not reading bugmail) 2008-10-17 09:00:09 CEST
Do you have nm-applet in your autostart list as well as in the session?
Comment 4 Riccardo Magliocchetti 2008-10-17 09:21:41 CEST
(In reply to comment #3)
> Do you have nm-applet in your autostart list as well as in the session?

no i don't.
Comment 5 Brian J. Tarricone (not reading bugmail) 2008-10-18 19:27:37 CEST
I really don't think this is an xfce4-session bug, but a problem with nm-applet.  It seems to be one of the few apps that misbehave, so I'd be more inclined to pin it on nm-applet.  Have you tried the troubleshooting steps listed in the launchpad bug?
Comment 6 Riccardo Magliocchetti 2008-10-19 12:10:45 CEST
(In reply to comment #5)
> I really don't think this is an xfce4-session bug, but a problem with
> nm-applet.  It seems to be one of the few apps that misbehave, so I'd be more
> inclined to pin it on nm-applet.  Have you tried the troubleshooting steps
> listed in the launchpad bug?

I fixed that by hand long time ago and stopped to use network manager more or less at the same time. Now I've removed my session file and i've tried to replicate the multiple nm-applet entries in it. Unfortunately I can't reproduce that anymore, since this is what the issue is about feel free to close. Thank you anyway.
Comment 7 Brian J. Tarricone (not reading bugmail) 2008-11-06 09:50:08 CET
Ok, I think I know what's happening, but I don't think it's fixable.  At some point, gtk (maybe as of 2.12, maybe earlier or later, not sure) started setting the WM_COMMAND property on all toplevel gtk windows to the command used to start the application that created the window.  xfce4-session supports legacy X11R5 session management, which considers any app with WM_COMMAND set to be savable in the session.

So, if your xfce4-session is compiled with legacy session management enabled (it should be by default), *any* gtk app can get saved in the session.  And since nm-applet is also in autostart, it'll get started as a part of the session, and as a part of autostart.

Unfortunately, there's really no way to fix this right now.  Currently xfce4-session has no way of knowing if an app started via autostart is the same as an app started in the session.  So basically you're going to have to start up Xfce with nm-applet in autostart, then remove it from autostart, and then logout, saving your session with nm-applet still running.  Then the next time you start Xfce, it should load nm-applet out of the session only.

If this works, please let me know, so we can confirm that I'm correct as to what's happening here.
Comment 8 Nick Schermer editbugs 2010-11-15 23:42:12 CET
Reassign to xfce-bugs@xfce.org.
Comment 9 Jérôme Guelfucci editbugs 2011-04-05 08:09:31 CEST
*** Bug 5296 has been marked as a duplicate of this bug. ***
Comment 10 Jérôme Guelfucci editbugs 2011-04-05 08:11:26 CEST
Bug 5123 has more feedback about this, let's merge everything.

*** This bug has been marked as a duplicate of bug 5123 ***

Bug #4014

Reported by:
Riccardo Magliocchetti
Reported on: 2008-04-14
Last modified on: 2011-04-05
Duplicates (1):

People

Assignee:
Xfce Bug Triage
CC List:
3 users

Version

Attachments

session file from ~/.cache/sessions (6.55 KB, text/plain)
2008-04-29 11:43 CEST , Riccardo Magliocchetti
no flags

Additional information