question about empty reply of talking to nm-system-settings via dbus

View: New views
3 Messages — Rating Filter:   Alert me  

question about empty reply of talking to nm-system-settings via dbus

by cee1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Dan,
I've compiled and installed nm-0.7.1-rc3 manually in debian, then try the following:
dbus-send --system --print-reply --dest=org.freedesktop.NetworkManagerSystemSettings /org/freedesktop/NetworkManagerSettings org.freedesktop.DBus.Properties.GetAll string:org.freedesktop.NetworkManagerSettings.System

It prints:
nm-system-settings: introspection data references non-existing property Hostname
nm-system-settings: introspection data references non-existing property CanModify
nm-system-settings: introspection data references non-existing property UnmanagedDevices
method return sender=:1.12 -> dest=:1.15 reply_serial=2
    array [
    ]

No hostname is returned, the version of dbus is 1.2.1
Any suggestions?

Thanks
- cee1

_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: question about empty reply of talking to nm-system-settings via dbus

by Dan Williams :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2009-10-23 at 17:32 +0800, cee1 wrote:

> Hi Dan,
> I've compiled and installed nm-0.7.1-rc3 manually in debian, then try
> the following:
> dbus-send --system --print-reply
> --dest=org.freedesktop.NetworkManagerSystemSettings /org/freedesktop/NetworkManagerSettings org.freedesktop.DBus.Properties.GetAll string:org.freedesktop.NetworkManagerSettings.System
>
>
> It prints:
> nm-system-settings: introspection data references non-existing
> property Hostname
> nm-system-settings: introspection data references non-existing
> property CanModify
> nm-system-settings: introspection data references non-existing
> property UnmanagedDevices
> method return sender=:1.12 -> dest=:1.15 reply_serial=2
>     array [
>     ]

Interesting; what version of dbus-glib?  Earlier versions had problems
with GetAll specifically.  You may need these dbus-glib commits:

http://cgit.freedesktop.org/dbus/dbus-glib/commit/?id=94d68f00d9d244de3b1d66d3cf78bb5171552311
http://cgit.freedesktop.org/dbus/dbus-glib/commit/?id=d1b80d803a0268bd4b3dd5b9a9522230461f2947

Does it work if you get each property individually?  That would point
directly to a dbus-glib issue.

dbus-send --system --print-reply \
        --dest=org.freedesktop.NetworkManagerSystemSettings \
        /org/freedesktop/NetworkManagerSettings \
        org.freedesktop.DBus.Properties.Get \
        string:org.freedesktop.NetworkManagerSettings.System \
        string:Hostname

Dan

_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: question about empty reply of talking to nm-system-settings via dbus

by cee1 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dan, Just like you said. Thanks a lot.
_______________________________________________
NetworkManager-list mailing list
NetworkManager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list