aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-06-19 22:57:29 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-06-19 22:57:57 +0200
commit8cbb98da044644e6787122d37bb6df48ae5e678b (patch)
tree17316e82ec4255cc1d5a5e02bfd5b287e057e869
parentf43aca36caaa693aa31afab18e98df93fb39b44a (diff)
downloadarctica-greeter-8cbb98da044644e6787122d37bb6df48ae5e678b.tar.gz
arctica-greeter-8cbb98da044644e6787122d37bb6df48ae5e678b.tar.bz2
arctica-greeter-8cbb98da044644e6787122d37bb6df48ae5e678b.zip
src/settings-daemon.vala: Fake org.gnome.SessionManager's RegisterClient D-Bus method.
-rw-r--r--src/settings-daemon.vala9
1 files changed, 9 insertions, 0 deletions
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; } }