Bug 367711 - NM-gnome or knetworkmanager, but NOT both!
Summary: NM-gnome or knetworkmanager, but NOT both!
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: knetworkmanager
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 374321 375331 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-05 23:40 UTC by Alexei Podtelezhnikov
Modified: 2007-11-30 22:12 UTC (History)
10 users (show)

Fixed In Version: 0.2-0.7.fc8
Clone Of:
Environment:
Last Closed: 2007-11-08 06:03:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alexei Podtelezhnikov 2007-11-05 23:40:33 UTC
NetworkManager-gnome autostarts nm-applet under KDE. Please stop it.

knetworkmanager should control NM under KDE. Yes, I know it is broken and 
replaced with the same nm-applet for now. The thing is that if you have both 
NM-gnome and knetworkmanager, two instances of nm-applet are attempted with 
very unpredictable results, including blocked logouts, etc. With 
NetworkManager daemon off, it is even weirder. 

Anyway, stop NetworkManager-gnome from starting nm-applet under KDE, please.

Comment 1 Rex Dieter 2007-11-06 14:37:43 UTC
nm-applet blocking logouts is a separate issue (bz?).

It is my strong belief that both nm-applet (and knetworkmanager) should be
usable under *any* desktop, so to me, your suggestion isn't compatible with that.

What *is* missing in nm-applet, is an ability for an end-user to disable it, ie,
disable it auto-launching (knetworkmanager has/had that feature).

Comment 2 Alexei Podtelezhnikov 2007-11-06 15:55:27 UTC
Do you want two applets launched together by default? As it stands right now,
two nm-applets are attempted to be launched. It is an ugly bug in the default
KDE setup.

Cross-usability is great, but a default user shouldn't be cornered with the two
choices in his face, even when there will be a choice.

We don't want to duplicate everything (or anything) on the default desktop. 

 

Comment 3 Rex Dieter 2007-11-06 16:03:49 UTC
If you don't want both, then don't install both.

Comment 4 Rex Dieter 2007-11-06 16:04:43 UTC
corrolary: if you *do* install both, the expectation should be to be able to use
both (or either, that's your choice).

Comment 5 Alexei Podtelezhnikov 2007-11-06 17:20:56 UTC
It is not like I have a choice.
knetworkmanager depends on NetworkManager-gnome

The latter installs /etc/xdg/autostart/nm-applet.desktop
which is missing X-Gnome-UniqueApplet=true or something.

So you have

/etc/xdg/autostart/nm-applet.desktop
/usr/share/autostart/knetworkmanager-autostart.desktop

both starting the same damn thing.

Am I clear now?



Comment 6 Rex Dieter 2007-11-06 17:33:37 UTC
I fail to the a problem, atm.  
Are you seeing 2 instances of nm-applet?  (I don't, it WORKSFORME).

When, the *real* knetworkmanager comes back, then yes, we'll have to have devise
a n upgrade strategy to handle this.

Comment 7 Alexei Podtelezhnikov 2007-11-06 17:51:07 UTC
The second launch attempt sometimes blocks logout for me and others:  
https://bugzilla.redhat.com/show_bug.cgi?id=358141#c4 :) 

The fact that the second attempt just does NOTBOTHERYOU doesn't mean that it 
won't SCREWOTHERS. This is a bug in NetworkManager-gnome package.
Even when you update knetworkmanager, nm-applet will continue to autostart on 
KDE. My last comment in this bug, Thanks!


Comment 8 Rex Dieter 2007-11-06 18:01:16 UTC
No one is suggesting bugs like what you (and others) seeing shouldn't fixed.


Comment 9 Alexei Podtelezhnikov 2007-11-06 18:17:27 UTC
The trivial fix is to add

OnlyShowIn=GNOME

to 

/etc/xdg/autostart/nm-applet.desktop

Comment 10 Rex Dieter 2007-11-06 18:19:23 UTC
reassigning -> knetworkmanager
so that we can disable the 2nd (emulated) nm-applet launch.

(OnlyShowIn was reverted, and is not recommended, see bug #336021)

Comment 11 Alexei Podtelezhnikov 2007-11-06 18:43:31 UTC
Sorry, I posted before I tried it. With OnlyShowIn=GNOME in nm-applet.desktop 
and knetworkmanager installed, the hell breaks loose. I have no idea how, but 
this interferes with kpowersave(!) and prevents it from starting very 
reproducibly here. 

Comment 12 Roland Wolters 2007-11-06 18:57:22 UTC
Strange, I cannot verify this bug:
I installed a fresh copy of Fedora 8 on my system, created an entirely new, 
virgin user, and still, I only have one applet.

Alexei, did that problem come up with an entirely new user on a virgin system 
or did it happen on a system where you upgraded. If the second case is true, 
can you describe the update path?

Btw., Alexei, please be aware that Rex' "WORKSFORME" wasn't an insult or 
screaming but is a set phrase of the bugzilla language.

Comment 13 Alexei Podtelezhnikov 2007-11-06 19:41:48 UTC
(In reply to comment #12)
> I only have one applet.
> 

I didn't say that the second applet successfully launches. Most of the time it 
fails. Sometimes it fails with consequences. Sometimes it prevents even the 
first applet from normally starting, sometimes it blocks logouts. 

nm-applet is a very raw application. In addition to the above symptoms, it 
never reports if NetworkManager daemon is not running. It just just fails with 
a different series of unpredictable consequences.

If you combine double-launch with stopped NetworkManager... Oh boy, good luck 
avoiding troubles.

Comment 14 Rex Dieter 2007-11-06 20:32:36 UTC
* Tue Nov 06 2007 Rex Dieter <rdieter[AT]fedoraproject.org> - 0.2-0.7
- omit knetworkmanager-autostart, so nm-applet doesn't start twice (#367711)
- omit needless (icon) scriptlets



Comment 15 Rex Dieter 2007-11-06 20:35:09 UTC
Alexei,
can you try this build, does it help?
http://koji.fedoraproject.org/koji/taskinfo?taskID=228516 

Comment 16 Alexei Podtelezhnikov 2007-11-06 22:02:56 UTC
Ok. This seems to work ok. All applets started fine.

Comment 17 Fedora Update System 2007-11-08 06:03:02 UTC
knetworkmanager-0.2-0.7.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Greg Martyn 2007-11-12 05:55:45 UTC
*** Bug 374321 has been marked as a duplicate of this bug. ***

Comment 19 Jeremy Katz 2007-11-12 15:20:42 UTC
*** Bug 375331 has been marked as a duplicate of this bug. ***

Comment 20 Sergio Basto 2007-11-12 20:28:39 UTC
why knetwork don't use knetwork instead of this horrible of nm-applet that even
don't have a quit button . 

Comment 21 Rex Dieter 2007-11-12 20:33:41 UTC
Sergio, knetworkmanager doesn't (yet) work with nm-0.7, see bug #298991


Note You need to log in before you can comment on or make changes to this bug.