Re: problems with accessing nm properties through dbus
- From: Dan Williams <dcbw redhat com>
- To: I M <raydenxy yahoo com>
- Cc: networkmanager-list gnome org
- Subject: Re: problems with accessing nm properties through dbus
- Date: Thu, 22 Jan 2009 11:47:05 -0500
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. :(
Also, what version of dbus-glib are you using? It could have an impact
if it's not up-to-date enough.
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]