After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 621119 - GDBusProxy and objects with no properties
GDBusProxy and objects with no properties
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gdbus
unspecified
Other Linux
: Normal normal
: ---
Assigned To: David Zeuthen (not reading bugmail)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-06-09 14:36 UTC by David Zeuthen (not reading bugmail)
Modified: 2010-06-09 15:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Zeuthen (not reading bugmail) 2010-06-09 14:36:04 UTC
Currently

$ gio/tests/gdbus-example-watch-proxy -n org.freedesktop.PackageKit -o /org/freedesktop/PackageKit -i org.freedesktop.PackageKit.Query
--- Cannot create proxy object for
    bus:          Session Bus
    name:         org.freedesktop.PackageKit
    object path:  /org/freedesktop/PackageKit
    interface:    org.freedesktop.PackageKit.Query

fails because the object has no properties.
Comment 1 David Zeuthen (not reading bugmail) 2010-06-09 14:38:52 UTC
Note, you probably also need to also pass -a/--auto-start in this example. Doesn't change anything, I still get

$ ./gio/tests/gdbus-example-watch-proxy -n org.freedesktop.PackageKit -o /org/freedesktop/PackageKit -i org.freedesktop.PackageKit.Query -a
--- Cannot create proxy object for
    bus:          Session Bus
    name:         org.freedesktop.PackageKit
    object path:  /org/freedesktop/PackageKit
    interface:    org.freedesktop.PackageKit.Query

while

$ ./gio/tests/gdbus-example-watch-proxy -n org.freedesktop.PackageKit -o /org/freedesktop/PackageKit -i org.freedesktop.PackageKit.Query -a -p
+++ Acquired proxy object for remote object owned by :1.176
    bus:          Session Bus
    name:         org.freedesktop.PackageKit
    object path:  /org/freedesktop/PackageKit
    interface:    org.freedesktop.PackageKit.Query
    properties:

works just fine
Comment 2 David Zeuthen (not reading bugmail) 2010-06-09 15:02:17 UTC
Fixed with this commit

http://git.gnome.org/browse/glib/commit/?id=1951c39c44afad8273e2978b4c1420e975882934