GDBus credentials don’t work on OS X
Submitted by Javier Jardón (IRC: jjardon)
Assigned to David Zeuthen
Link to original bug (#668866)
Description
gdbus seems to not work in OSX, using dbus-glib works without problems instead.
I paste here the result of this gdbus call:
G_DBUS_DEBUG=all gdbus call --session --dest org.freedesktop.DBus --object-path / --method org.freedesktop.DBus.Introspectable.Introspect
GDBus-debug:Address: In g_dbus_address_get_for_bus_sync() for bus type `session'
GDBus-debug:Address: env var DBUS_SESSION_BUS_ADDRESS=`unix:path=/var/tmp/dbus-2NueBBNucP,guid=03e803c1756cc9d241c903dd4f227e67'
GDBus-debug:Address: env var DBUS_SYSTEM_BUS_ADDRESS is not set
GDBus-debug:Address: env var DBUS_STARTER_BUS_TYPE is not set
GDBus-debug:Address: Returning address `unix:path=/var/tmp/dbus-2NueBBNucP,guid=03e803c1756cc9d241c903dd4f227e67' for bus type `session'
GDBus-debug:Auth: CLIENT: initiating
GDBus-debug:Auth: CLIENT: didn't send any credentials
GDBus-debug:Auth: CLIENT: writing `AUTH\r\n'
GDBus-debug:Auth: CLIENT: WaitingForReject
GDBus-debug:Auth: CLIENT: WaitingForReject, read 'REJECTED EXTERNAL DBUS_COOKIE_SHA1 ANONYMOUS'
GDBus-debug:Auth: CLIENT: Trying to choose mechanism
GDBus-debug:Auth: CLIENT: Trying mechanism `EXTERNAL'
GDBus-debug:Auth: CLIENT: Mechanism `EXTERNAL' says it is not supported
GDBus-debug:Auth: CLIENT: Trying to choose mechanism
GDBus-debug:Auth: CLIENT: Trying mechanism `DBUS_COOKIE_SHA1'
GDBus-debug:Auth: CLIENT: writing `AUTH DBUS_COOKIE_SHA1 353031\r\n'
GDBus-debug:Auth: CLIENT: WaitingForData
GDBus-debug:Auth: CLIENT: WaitingForData, read=`DATA 6f72675f667265656465736b746f705f67656e6572616c20363834383139313432206566643037396431646138613230653532306333333035343531346265396531'
GDBus-debug:Auth: CLIENT: writing `DATA 44336b594a657476323930474a63436f2039396565653266643664646164333361306139386634393431313537623332303236663164656465\r\n'
GDBus-debug:Auth: CLIENT: WaitingForOK
GDBus-debug:Auth: CLIENT: WaitingForOK, read `OK 03e803c1756cc9d241c903dd4f227e67'
GDBus-debug:Auth: CLIENT: writing `NEGOTIATE_UNIX_FD\r\n'
GDBus-debug:Auth: CLIENT: WaitingForAgreeUnixFD
GDBus-debug:Auth: CLIENT: WaitingForAgreeUnixFD, read=`AGREE_UNIX_FD'
GDBus-debug:Auth: CLIENT: writing `BEGIN\r\n'
GDBus-debug:Auth: CLIENT: Done, authenticated=1
========================================================================
GDBus-debug:Call:
>>>> SYNC org.freedesktop.DBus.Hello()
on object /org/freedesktop/DBus
owned by name org.freedesktop.DBus
========================================================================
GDBus-debug:Call:
<<<< SYNC COMPLETE org.freedesktop.DBus.Hello()
FAILED: The connection is closed
------------------------------------------------------------------------
dbus-send works without problems, I used this command:
dbus-send --session --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.Introspectable.Introspect
Also, seems that other users already report this:
http://sourceforge.net/apps/phpbb/gtk-osx/viewtopic.php?f=3&t=74#p400
Version: 2.28.x
Edited by Emmanuele Bassi