1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
Description: Listen on object path `/org/freedesktop/ScreenSaver` too
Origin: upstream, https://github.com/vincentbernat/xssproxy/commit/8990c56b706f0faf1ec8ca974a8ba64f37c2b1b3
Bug: https://github.com/vincentbernat/xssproxy/issues/9
Bug-Debian: https://bugs.debian.org/1092965
Last-Update: 2023-11-11
Applied-Upstream: 1.1.1
The freedesktop.org spec doesn't mention which object path the methods
are supposed to be called on. xssproxy currently listens on
`/ScreenSaver`, but Chromium wants the ["conventional"][1]
`/org/freedesktop/ScreenSaver` path instead.
There's no reason we can't listen on both, so let's do that.
[1]: https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-bus
---
xssproxy.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/xssproxy.c b/xssproxy.c
index 8bef8d0..2541c5d 100644
--- a/xssproxy.c
+++ b/xssproxy.c
@@ -280,6 +280,11 @@ DBusConnection *dbus_conn_init()
&vtable, NULL, &err);
check_and_exit(&err);
+ dbus_connection_try_register_object_path(conn,
+ "/org/freedesktop/ScreenSaver",
+ &vtable, NULL, &err);
+ check_and_exit(&err);
+
return conn;
}
--
2.47.2
|