diff options
| author | Ted Gould <ted@gould.cx> | 2013-08-07 13:39:46 -0500 |
|---|---|---|
| committer | Ted Gould <ted@gould.cx> | 2013-08-07 13:39:46 -0500 |
| commit | f7995253cd21a7a72fcb63eed964dfd447393633 (patch) | |
| tree | 79bd6c3b53f9cda83a6ca6fc338ffdf9388565fa /services | |
| parent | d43020440d86719c8d071c684deca500daebc181 (diff) | |
Switch to emitting the start signal via the proxy
(bzr r3456.3.3)
Diffstat (limited to 'services')
| -rw-r--r-- | services/panel-service.c | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/services/panel-service.c b/services/panel-service.c index dd4f60144..718241c0a 100644 --- a/services/panel-service.c +++ b/services/panel-service.c @@ -478,35 +478,12 @@ initial_resync (PanelService *self) static gboolean ready_signal (PanelService *self) { - if (PANEL_IS_SERVICE (self)) - { - GError * error = NULL; - gchar * argv[] = { - "initctl", - "--session", - "--user", - "emit", - "--no-wait", - "indicators-loaded", - NULL, - }; - - g_spawn_async (NULL, /* Working Directory */ - argv, - NULL, /* environment */ - G_SPAWN_SEARCH_PATH, - NULL, NULL, /* child setup function */ - NULL, /* Pid */ - &error); - - if (error) - { - /* 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 indicators-loaded to upstart: %s", error->message); - g_error_free (error); - } + if (PANEL_IS_SERVICE (self) && self->priv->upstart != NULL) + { + int event_sent = 0; + event_sent = upstart_emit_event_sync(NULL, self->priv->upstart, "indicator-services-start", NULL, 0); + if (event_sent != 0) + g_warning("Unable to signal for indicator services to start"); } return FALSE; |
