Re: problems with accessing nm properties through dbus



On Wed, 2009-01-21 at 07:14 -0800, I M wrote:
> 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. :(

GetAll requires the interface name for which you want to get properties.
Each NM Device exposes one or more interfaces, for example the Wifi
device exposes properties on the
org.freedesktop.NetworkManager.Device.Wireless interface, as well as
generic device properties on the org.freedesktop.NetworkManager.Device
interface.

Dan

> 
> 
> ----- 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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]