GNOME Bugzilla – Bug 709419
nm-applet should be still autostarted in fallback/flashback sessions
Last modified: 2013-10-28 15:22:52 UTC
The GNOME Flashback session (https://wiki.gnome.org/GnomeFlashback) is the primary user of nm-applet, so it would make sense to autostart it there.
Created attachment 256458 [details] [review] Make sure applet is still started in gnome-flashback session
Created attachment 256460 [details] [review] Make sure applet is still started in gnome-flashback session Sorry, forgot about X-GNOME-Autostart-enabled, this is updated version.
I don't think that's right; you want the default to be off, and only turn it on in gnome-flashback, rather than the other way around. (In case people/distros define additional GNOME3 sessions.)
(In reply to comment #3) > I don't think that's right; you want the default to be off, and only turn it on > in gnome-flashback, rather than the other way around. (In case people/distros > define additional GNOME3 sessions.) +1
Is it possible to define two or more allowed sessions? I.e. in Ubuntu we have "gnome-flashback" and "gnome-flashback-compiz" sessions.
*** Bug 709679 has been marked as a duplicate of this bug. ***
(In reply to comment #5) > Is it possible to define two or more allowed sessions? I.e. in Ubuntu we have > "gnome-flashback" and "gnome-flashback-compiz" sessions. I'm not sure. Try it... (or check the gnome-session source code)
Looks like gnome-session doesn't support that. But, like Tim mentions in a duplicate bug, it should also be autostarted in sessions like gnome-xmonad, so I don't like the idea of marking it 'if-session gnome-flashback'. Can we maybe make nm-applet exit if gnome-shell is running (i.e. by checking for its D-Bus interface)?
Created attachment 256922 [details] [review] applet: redo the gnome-shell interaction code Change the shell interaction code so that we only create an NMSecretAgent if the shell is not running, and we permanently destroy it if the shell ever starts up. Revert the change to not run nm-applet under GNOME 3 now, since it should be safe to do so, and this solves the problem for users who need the GSM PIN unlock dialog.
can people test that patch?
Thanks for the patch. I will be able to test it only next week, hope it can wait.
Review of attachment 256922 [details] [review]: Sorry for the delay. With this patch nm-applet still starts in gnome-flashback and Unity, so this looks good to me.
In my experience nm-applet is autostarted but the line NotShowIn=KDE;GNOME; in /etc/xdg/autostart/nm-applet.desktop needs to be commented for the applet to appear in the system tray.
Charles, the patch in question changes that line to allow GNOME.
The patch looks right, but I didn't actually test it. I'll hopefully try later.
fixed in master, and there will soon be another 0.9.8 release with the fix as well Attachment 256922 [details] pushed as e192e83 - applet: redo the gnome-shell interaction code