aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-05-29 13:25:47 -0500
committerTed Gould <ted@gould.cx>2013-05-29 13:25:47 -0500
commit3051b7a294a8b0c468d69f1c578f9eb41313c2e9 (patch)
treeedf0b3082654da9a6d856120c1400534cb337696 /src
parenta6999f41b1da373b48e897d8fbd218617a5fefa2 (diff)
downloadayatana-indicator-application-3051b7a294a8b0c468d69f1c578f9eb41313c2e9.tar.gz
ayatana-indicator-application-3051b7a294a8b0c468d69f1c578f9eb41313c2e9.tar.bz2
ayatana-indicator-application-3051b7a294a8b0c468d69f1c578f9eb41313c2e9.zip
When we get our name, then start app indicators
Diffstat (limited to 'src')
-rw-r--r--src/application-service-watcher.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/application-service-watcher.c b/src/application-service-watcher.c
index edbf05b..c4fa9b4 100644
--- a/src/application-service-watcher.c
+++ b/src/application-service-watcher.c
@@ -286,5 +286,32 @@ get_name_cb (DBusGProxy * proxy, guint status, GError * error, gpointer data)
return;
}
+ GError * spawn_error = NULL;
+ gchar * argv[] = {
+ "initctl",
+ "--session",
+ "--user",
+ "emit",
+ "--no-wait",
+ "appindicators-start",
+ NULL,
+ };
+
+ g_spawn_async(NULL, /* Working Directory */
+ argv,
+ NULL, /* environment */
+ G_SPAWN_SEARCH_PATH,
+ NULL, NULL, /* child setup function */
+ NULL, /* Pid */
+ &spawn_error);
+
+ if (spawn_error != NULL) {
+ /* NOTE: When we get to the point where we can start
+ assuming upstart user sessions this can be escillated
+ to a warning or higher */
+ g_debug("Unable to signal appindicators-start to upstart: %s", spawn_error->message);
+ g_error_free(spawn_error);
+ }
+
return;
}