summaryrefslogtreecommitdiff
path: root/plugins/common/daemon-skeleton.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2016-10-04 22:44:07 +0200
committerBastien Nocera <hadess@hadess.net>2016-10-11 11:00:57 +0200
commit32e29bc370e7599c3a429b185cbfa0b176e6c7eb (patch)
treea63a0009bbea104b9655d176dda220a0e8fd433f /plugins/common/daemon-skeleton.h
parent71f5c5db836b142063a77ff0ff456afd54601a25 (diff)
downloadgnome-settings-daemon-32e29bc370e7599c3a429b185cbfa0b176e6c7eb.tar.gz
dummy: Add support for stub daemons
So that gnome-session can keep a list of hard-coded gsd daemons for now, we'll need to replace some of the daemons with dummy ones. For each of the daemons that can be disabled, create a .desktop file anyway, and launch a gsd-dummy. https://bugzilla.gnome.org/show_bug.cgi?id=772370
Diffstat (limited to 'plugins/common/daemon-skeleton.h')
-rw-r--r--plugins/common/daemon-skeleton.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/common/daemon-skeleton.h b/plugins/common/daemon-skeleton.h
index fdb1c856..be714423 100644
--- a/plugins/common/daemon-skeleton.h
+++ b/plugins/common/daemon-skeleton.h
@@ -27,10 +27,12 @@
static MANAGER *manager = NULL;
static int timeout = -1;
+static char *dummy_name = NULL;
static gboolean verbose = FALSE;
static GOptionEntry entries[] = {
{ "exit-time", 0, 0, G_OPTION_ARG_INT, &timeout, "Exit after n seconds time", NULL },
+ { "dummy-name", 0, 0, G_OPTION_ARG_STRING, &dummy_name, "Name when using the dummy daemon", NULL },
{ "verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose, "Verbose", NULL },
{NULL}
};
@@ -121,7 +123,7 @@ register_with_gnome_session (GMainLoop *loop)
startup_id = g_getenv ("DESKTOP_AUTOSTART_ID");
g_dbus_proxy_call (proxy,
"RegisterClient",
- g_variant_new ("(ss)", PLUGIN_NAME, startup_id ? startup_id : ""),
+ g_variant_new ("(ss)", dummy_name ? dummy_name : PLUGIN_NAME, startup_id ? startup_id : ""),
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,