Bug 466345

Summary: nm-kde4 works only if nm-kde3 is installed with wireless
Product: [openSUSE] openSUSE 11.1 Reporter: Alin M Elena <alinm.elena>
Component: KDE4 WorkspaceAssignee: Will Stephenson <wstephenson>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: forgotten_--EoyBps8f, forgotten_vXTZVacoSi, stijn
Version: RC 2   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: working log with nm-gnome installed
not working log without nm-gnome

Description Alin M Elena 2009-01-15 11:15:38 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.5) Gecko/2008121300 SUSE/3.0.5-1.1 Firefox/3.0.5

nm-kde4 is not working if nm-kde3 is missing with wpa-psk 
nm-kde3 0.7r848570-23.1
nm-kde4 0.7.svn909773-36.2

Alin

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Alin M Elena 2009-01-17 13:40:08 UTC
or networkmanager-gnome.
Comment 2 Alin M Elena 2009-01-17 13:43:51 UTC
Created attachment 265865 [details]
working log with nm-gnome installed
Comment 3 Alin M Elena 2009-01-17 13:44:28 UTC
Created attachment 265866 [details]
not working log without nm-gnome
Comment 4 Alin M Elena 2009-01-17 13:46:22 UTC
To clear a little bit the things.

install the nm-kde4 package, remove the nm-kde3, yast will select nm-gnome.
everything is fine.
remove nm-gnome wpa no connection.
add nm-gnome wpa connection is back.

Alin
Comment 5 Will Stephenson 2009-01-28 16:37:57 UTC
To explain what is going on:

The NM-kde4 plasmoid acts as an interface to any NetworkManagerUserSettings service.

It has its own implementation of this service, but so do knetworkmanager  (kde3) and nm-applet.  If either of those are running, NM-kde4's service cannot start, so the plasmoid shows the connections from the running service.  

Therefore it is not necessary to have knetworkmanager or nm-applet installed for NM-kde4 to work.

If NM-kde4 is not connection to WPA when they are not installed, that's a different bug.
Comment 6 Forgotten User --EoyBps8f 2009-01-28 22:22:24 UTC
Adding the following as a file to /etc/dbus-1/system.d/ solves this issue.

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
        <policy user="root">
                <allow own="org.freedesktop.NetworkManagerUserSettings"/>
 
                <allow send_destination="org.freedesktop.NetworkManagerUserSettings"/>
                <allow send_interface="org.freedesktop.NetworkManagerSettings"/>
 
                <!-- Only root can get secrets -->
                <allow send_interface="org.freedesktop.NetworkManagerSettings.Secrets"/>
        </policy>
        <policy at_console="true">
                <allow own="org.freedesktop.NetworkManagerUserSettings"/>
 
                <allow send_destination="org.freedesktop.NetworkManagerUserSettings"/>
                <allow send_interface="org.freedesktop.NetworkManagerSettings"/>
 
                <!-- Only root can get secrets -->
                <deny send_interface="org.freedesktop.NetworkManagerSettings.Secrets"/>
        </policy>
        <policy context="default">
                <deny own="org.freedesktop.NetworkManagerUserSettings"/>
 
                <allow send_destination="org.freedesktop.NetworkManagerUserSettings"/>
                <allow send_interface="org.freedesktop.NetworkManagerSettings"/>
                <!-- Only root can get secrets -->
                <deny send_interface="org.freedesktop.NetworkManagerSettings.Secrets"/>
        </policy>
 
        <limit name="max_replies_per_connection">512</limit>
</busconfig>