mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
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
This commit is contained in:
parent
debbdb7ce7
commit
34045e66a6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user