Xfce4 Panel Plugin that connects to NetworkManager through DBUS. Reproducible: Always
This will require some work, the patch used in the .3 release doesn't apply cleaning. Just did a simple s/.3/.7/g and no luck.
*** Bug 212187 has been marked as a duplicate of this bug. ***
Created attachment 145203 [details] pynetworkmanager-0.7.ebuild (Update) Ebuild off my dublicated bug report.
Created attachment 145204 [details, diff] Patch for window not showing up (glade file not found)
Created attachment 145206 [details, diff] Add Makefile patch.
Created attachment 145207 [details, diff] .desktop file with correct path to plugin.
I think dev-python/pyxdg should be given as dependency. I had not it installed on my system and the python scripts gave an error about the lack of this module.
Created attachment 145745 [details] added dev-python/pyxdg as a dependency I can confirm that dev-python/pyxdg is needed as a dependency. Updated ebuild accourdingly.
Thanks for the bump. It seems to work, although I couldn't test my wireless lan so far. Is it correct, that the xfce panel plugin shows a missing-icon-icon (a file icon with a red X inside)?
Icon files are not correctly shown. I moved pyNetworkManager files now to /usr/share/pyNetworkManager, so icons are now working again. I also cleaned up the ebuild, merged the patches. I also added some other fixes, to make the connection settings dialog pop up, when you are asked for a key, etc. NetworkMangager 6.6 won't work correctyl with pyNM. In fact it'll crash.
Created attachment 150046 [details] Updated ebuild
Created attachment 150047 [details, diff] Merged updated patch
With the new ebuild I can see all icons and the configuration dialog pops up. But entering my PSK there doesn't make NM connect to it. The applet shows "..." and a tooltip says "Waiting", but after some seconds it's back to normal mode and no connection was established. In /var/log/messages there are no messages of NM that have to do with the wlan0 interface, so I guess the PSK I typed in and the click on "Connect" didn't make it through to NM. I use NM-0.6.6, but neither NM nor pyNM crash. ;-)
I'm working on a patch to pass it through to NM. But NM 6.6 crashs, when i send something, which should never happen. However 6.5 won't crash, so i'll continue working with 6.5. I'll upload another patch, next time I fire up gentoo. Btw. You can also start pyNM with the window.py script, so you'll get debug output in the console.
I tried the new updated ebuild, but I cannot connect to a WPA2 encrypted network. In the menu appears correctly my network. When I click on it, the Dialog box appears, but after entering the PSK and I click Connect, the dialog box reappears. And this keeps happening all the time. Did any of you have success in connecting to a [WPA2-PSK-CCMP] network? Note the I have networkmanager-0.6.5_p20080205.
(In reply to comment #15) > I tried the new updated ebuild, but I cannot connect to a WPA2 encrypted > network. In the menu appears correctly my network. When I click on it, the > Dialog box appears, but after entering the PSK and I click Connect, the dialog > box reappears. And this keeps happening all the time. > > Did any of you have success in connecting to a [WPA2-PSK-CCMP] network? Note > the I have networkmanager-0.6.5_p20080205. > When I run /usr/share/pyNetworkManager/windowgtk.py I receive the following error. It however works when running as root: $ /usr/share/pyNetworkManager/windowgtk.py : REQUEST 'Current status' is triggerd Traceback (most recent call last): File "/usr/share/pyNetworkManager/windowgtk.py", line 72, in ? pynm.run() File "//usr/share/pyNetworkManager/pyNM/__init__.py", line 75, in run self.refresh() File "//usr/share/pyNetworkManager/pyNM/__init__.py", line 64, in refresh status = self.current_status() File "//usr/share/pyNetworkManager/pyNM/Bindings.py", line 31, in request return self.bound( **args ) File "//usr/share/pyNetworkManager/pyNM/client.py", line 179, in current_status if self.active_device(): File "//usr/share/pyNetworkManager/pyNM/client.py", line 172, in active_device self.device_complement( device ) File "//usr/share/pyNetworkManager/pyNM/client.py", line 167, in device_complement return device.complement( File "//usr/share/pyNetworkManager/pyNM/client.py", line 164, in device_properties return dev_obj.getProperties() File "/usr/lib64/python2.4/site-packages/dbus/proxies.py", line 85, in __call__ return self._proxy_method(*args, **keywords) File "/usr/lib64/python2.4/site-packages/dbus/proxies.py", line 169, in __call__ reply_message = self._connection.send_message_with_reply_and_block(message, timeout) dbus.DBusException: org.freedesktop.DBus.Error.AccessDenied: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "(unset)" member "getProperties" error name "(unset)" destination ":1.128")
> When I run /usr/share/pyNetworkManager/windowgtk.py I receive the following > error. It however works when running as root: Is your user member of the "plugdev" group? If not, than add yourself to the plugdev group. And if the problem still persists, than: "You might need to edit /etc/dbus-1/system.d/NetworkManager.conf, into group=\"plugdev\" section: <allow own=\"org.freedesktop.NetworkManagerInfo\"/> And restart system dbus after: /etc/init.d/dbus restart." The above hint is displayed by the emerge process in the pkg_postinst() function. I can connect without any problem to an unsecure networkm, but it does not work properly with WPA encryption, as I said in my previous post. The source has some bugs in the handling of the WPA. Maybe I will find some time to fix it.
xfce-extra/pynetworkmanager is currently masked pending removal. Closing.