Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394379 - gnome-extra/nm-applet-0.9.2.0 autostarts in all desktops
Summary: gnome-extra/nm-applet-0.9.2.0 autostarts in all desktops
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robert Piasek (RETIRED)
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-11 21:15 UTC by Marc Schiffbauer
Modified: 2011-12-15 02:34 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer gentoo-dev 2011-12-11 21:15:07 UTC
Hi,

nm-applet installs the file /etc/xdg/autostart/nm-applet.desktop to autostart nm-applet.

Please add a "OnlyShowIn" key so that nm-applet will not start in KDE for example.

(if this bug is valid, the same applies for gnome-base/nautilus (/etc/xdg/autostart/nautilus-autostart.desktop) and gnome-extra/polkit-gnome (/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop))

Thanks
-Marc
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-12-14 07:47:30 UTC
Instead of "OnlyShowIn", we want "NotShowIn=KDE;" since all other destkop environments (gnome, xfce, unity if we ever add it etc.) do want to autostart nm-applet. Also, the connection editor should be shown in all destkop environments where nm-applet is autostarted, not just in gnome.

(Incidentally, this is exactly the same as what Ubuntu is doing with the latest version of their network-manager-applet package.)

Patch submitted upstream at https://bugzilla.gnome.org/show_bug.cgi?id=660046

>*nm-applet-0.9.2.0-r1 (14 Dec 2011)
>
>  14 Dec 2011; Alexandre Rostovtsev <tetromino@gentoo.org>
>  -nm-applet-0.9.1.95.ebuild, -files/nm-applet-0.9.1.95-glib-2.31.patch,
>  +nm-applet-0.9.2.0-r1.ebuild, +files/nm-applet-0.9.2.0-not-show-in-kde.patch:
>  Don't autostart in KDE (bug #394379, thanks to Marc Schiffbauer for
>  reporting). Also, show connection editor in all non-KDE desktop environments.
>  Drop old.
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-12-14 07:52:55 UTC
(In reply to comment #0)
> (if this bug is valid, the same applies for gnome-base/nautilus
> (/etc/xdg/autostart/nautilus-autostart.desktop) and gnome-extra/polkit-gnome
> (/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop))

I don't think those two need to be changed.

polkit-gnome-authentication-agent-1.desktop already has "NotShowIn=KDE;".

nautilus-autostart.desktop has "AutostartCondition=GSettings org.gnome.desktop.background show-desktop-icons", so it only gets autostarted if the user manually enables a hidden setting to have nautilus-3 manage the desktop like it did in gnome-2. In which case presumably the user gets precisely what he was asking for.
Comment 3 Marc Schiffbauer gentoo-dev 2011-12-14 12:42:51 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > (if this bug is valid, the same applies for gnome-base/nautilus
> > (/etc/xdg/autostart/nautilus-autostart.desktop) and gnome-extra/polkit-gnome
> > (/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop))
> 
> I don't think those two need to be changed.
> 
> polkit-gnome-authentication-agent-1.desktop already has "NotShowIn=KDE;".
> 
> nautilus-autostart.desktop has "AutostartCondition=GSettings
> org.gnome.desktop.background show-desktop-icons", so it only gets autostarted
> if the user manually enables a hidden setting to have nautilus-3 manage the
> desktop like it did in gnome-2. In which case presumably the user gets
> precisely what he was asking for.

I am not sure this is entirely correct.

Yes, I switched a setting to use the background as folder while I was in a gnome session. But no I do not want nautilus to start behind plasma-desktop while I am logged in into a KDE session.
Right now, "nautilus -n" is running in the background which I can see in the process table and for a short moment on logout.
Comment 4 Pacho Ramos gentoo-dev 2011-12-14 17:41:46 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #0)
> > > (if this bug is valid, the same applies for gnome-base/nautilus
> > > (/etc/xdg/autostart/nautilus-autostart.desktop) and gnome-extra/polkit-gnome
> > > (/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop))
> > 
> > I don't think those two need to be changed.
> > 
> > polkit-gnome-authentication-agent-1.desktop already has "NotShowIn=KDE;".
> > 
> > nautilus-autostart.desktop has "AutostartCondition=GSettings
> > org.gnome.desktop.background show-desktop-icons", so it only gets autostarted
> > if the user manually enables a hidden setting to have nautilus-3 manage the
> > desktop like it did in gnome-2. In which case presumably the user gets
> > precisely what he was asking for.
> 
> I am not sure this is entirely correct.
> 
> Yes, I switched a setting to use the background as folder while I was in a
> gnome session. But no I do not want nautilus to start behind plasma-desktop
> while I am logged in into a KDE session.
> Right now, "nautilus -n" is running in the background which I can see in the
> process table and for a short moment on logout.

Looking to that case, I also think it shouldn't be autostarted on KDE
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-12-15 02:34:59 UTC
(In reply to comment #3)
> Yes, I switched a setting to use the background as folder while I was in a
> gnome session. But no I do not want nautilus to start behind plasma-desktop
> while I am logged in into a KDE session.

You are right, it's not good if two applications (plasma+nautilus or xfdesktop+nautilus) are trying to manage the desktop simultaneously. Fixed by adding "OnlyShowIn=GNOME;Unity;" to nautilus-autostart.desktop. Patch submitted upstream at https://bugzilla.gnome.org/show_bug.cgi?id=666218

>*nautilus-3.2.1-r1 (15 Dec 2011)
> 
>  15 Dec 2011; Alexandre Rostovtsev <tetromino@gentoo.org>
>  +nautilus-3.2.1-r1.ebuild,
>  +files/nautilus-3.2.1-autostart-only-show-in.patch,
>  +files/nautilus-3.2.1-delete.patch,
>  +files/nautilus-3.2.1-key-press-forwarding.patch:
>  Restore the Delete keyboard shortcut for deleting files (bug #393663, thanks
>  to Pacho for reporting). Do not handle keyboard shortcuts in NautilusWindow
>  if a text entry is focused (prevents files from getting deleted when pressing
>  Delete in search entry). Only autostart in GNOME and Unity (bug #394379,
>  thanks to Marc Schiffbauer for reporting).