From 8cbb98da044644e6787122d37bb6df48ae5e678b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 19 Jun 2024 22:57:29 +0200 Subject: src/settings-daemon.vala: Fake org.gnome.SessionManager's RegisterClient D-Bus method. --- src/settings-daemon.vala | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/settings-daemon.vala b/src/settings-daemon.vala index 1d9ed33..af6ff90 100644 --- a/src/settings-daemon.vala +++ b/src/settings-daemon.vala @@ -334,6 +334,15 @@ public class MateScreenSaverInterface : ScreenSaverInterface {} [DBus (name="org.gnome.SessionManager")] public class SessionManagerInterface : Object { + private int client_id = 0; + + public async ObjectPath RegisterClient(string app_id, string client_startup_id) throws GLib.DBusError, GLib.IOError + { + client_id++; + string path = "/org/ArcticaProject/artica_greeter/client/%d".printf (client_id); + debug ("Our fake org.gnome.SessionManager received RegisterClient request (app_id: %s, client_startup_id: %s), returning ObjectPath %s", app_id, client_startup_id, path); + return (ObjectPath)path; + } public bool session_is_active { get { return true; } } public string session_name { get { return "greeter"; } } public uint32 inhibited_actions { get { return 0; } } -- cgit v1.2.3