[glib] GGtkNotificationBackend: Use correct path for GetNameOwner call
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GGtkNotificationBackend: Use correct path for GetNameOwner call
- Date: Fri, 9 Jun 2017 16:03:27 +0000 (UTC)
commit 34045e66a69636933b3e2c5c84ecab4463ff58d4
Author: Simon McVittie <smcv collabora com>
Date: Fri Jun 9 12:41:54 2017 +0100
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
gio/ggtknotificationbackend.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gio/ggtknotificationbackend.c b/gio/ggtknotificationbackend.c
index 37068dc..8d6eab2 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]