Re: problems with accessing nm properties through dbus

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

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
NetworkManager-list mailing list
NetworkManager-list gnome org


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