diff options
author | Simon McVittie <smcv@collabora.com> | 2017-06-09 12:41:54 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2017-06-09 16:45:09 +0100 |
commit | 34045e66a69636933b3e2c5c84ecab4463ff58d4 (patch) | |
tree | e293991bda52501e8496e3de892f8c09778586db /gio/ggtknotificationbackend.c | |
parent | debbdb7ce7818beb9d73aafa6b261db4d7c9aa4f (diff) | |
download | glib-34045e66a69636933b3e2c5c84ecab4463ff58d4.tar.gz |
GGtkNotificationBackend: Use correct path for GetNameOwner call
For historical reasons, the reference dbus-daemon responds to most
method calls on all object paths. However, the canonical path
of the object implementing the o.fd.DBus interface is
/org/freedesktop/DBus, and in some environments (notably AppArmor
with the <abstractions/dbus-session-strict> abstraction) only this
path is allowed.
https://bugs.freedesktop.org/show_bug.cgi?id=101256 officially
deprecates all other object paths, and when adding new APIs we will
only make them available on the canonical object path.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Emmanuele Bassi <ebassi@gnome.org>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=783593
Diffstat (limited to 'gio/ggtknotificationbackend.c')
-rw-r--r-- | gio/ggtknotificationbackend.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gio/ggtknotificationbackend.c b/gio/ggtknotificationbackend.c index 37068dc20..8d6eab2fb 100644 --- a/gio/ggtknotificationbackend.c +++ b/gio/ggtknotificationbackend.c @@ -58,7 +58,8 @@ g_gtk_notification_backend_is_supported (void) if (session_bus == NULL) return FALSE; - reply = g_dbus_connection_call_sync (session_bus, "org.freedesktop.DBus", "/", "org.freedesktop.DBus", + reply = g_dbus_connection_call_sync (session_bus, "org.freedesktop.DBus", "/org/freedesktop/DBus", + "org.freedesktop.DBus", "GetNameOwner", g_variant_new ("(s)", "org.gtk.Notifications"), G_VARIANT_TYPE ("(s)"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL); |