Re: problems with accessing nm properties through dbus
- From: I M <raydenxy yahoo com>
- To: networkmanager-list gnome org
- Subject: Re: problems with accessing nm properties through dbus
- Date: Wed, 21 Jan 2009 07:14:58 -0800 (PST)
Nope it doesn't work with arguments neither(wtb GetAll,it doesn't require args?).I have checked access policies and they are fine.I am not logged in remotely and i did try this stuff as root too. :(
----- Original Message ----
From: Martin Vidner <mvidner suse cz>
To: networkmanager-list gnome org
Sent: Wednesday, January 21, 2009 4:28:15 PM
Subject: Re: problems with accessing nm properties through dbus
On Wed, Jan 21, 2009 at 06:06:30AM -0800, I M wrote:
> user host:/work$ dbus-send --system --print-reply
> --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager
> org.freedesktop.DBus.Properties.Get
> Error org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with
> signature "" on interface "org.freedesktop.DBus.Properties" doesn't
> exist
Exactly. You call Get() but you need to call
Get("org.freedesktop.NetworkManager", "WirelessEnabled"):
$ dbus-send --system --print-reply --dest=org.freedesktop.NetworkManager \
/org/freedesktop/NetworkManager org.freedesktop.DBus.Properties.Get \
string:org.freedesktop.NetworkManager string:WirelessEnabled
method return sender=:1.2226 -> dest=:1.2620 reply_serial=2
If this does not work, perhaps it is an access policy problem? Are
you logged in remotely? If yes, becoming root should make it work.
--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
_______________________________________________
NetworkManager-list mailing list
NetworkManager-list gnome org
http://mail.gnome.org/mailman/listinfo/networkmanager-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]