aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-28 14:53:02 -0500
committerTed Gould <ted@canonical.com>2009-09-28 14:53:02 -0500
commitf5c0bb7915f8d9f7dc3c63285f7ebaa13e86c507 (patch)
tree8fb96aa96b12b968a85a5b556eaa5517c0876341
parentc2a35dea3a5876a254206523122ee07112991e62 (diff)
downloadayatana-indicator-session-f5c0bb7915f8d9f7dc3c63285f7ebaa13e86c507.tar.gz
ayatana-indicator-session-f5c0bb7915f8d9f7dc3c63285f7ebaa13e86c507.tar.bz2
ayatana-indicator-session-f5c0bb7915f8d9f7dc3c63285f7ebaa13e86c507.zip
Criticalizing the other services as well.
-rw-r--r--src/indicator-session.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index 13abb7d..99ce460 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -280,8 +280,10 @@ build_status_menu (gpointer userdata)
}
if (!org_freedesktop_DBus_start_service_by_name (proxy, INDICATOR_STATUS_DBUS_NAME, 0, &returnval, &error)) {
- g_error("Unable to send message to DBus to start service: %s", error != NULL ? error->message : "(NULL error)" );
- g_error_free(error);
+ g_critical("Unable to send message to DBus to start status service");
+ if (error != NULL) {
+ g_error_free(error);
+ }
return FALSE;
}
@@ -372,13 +374,15 @@ build_users_menu (gpointer userdata)
}
if (!org_freedesktop_DBus_start_service_by_name (proxy, INDICATOR_USERS_DBUS_NAME, 0, &returnval, &error)) {
- g_error("Unable to send message to DBus to start service");
- g_error_free(error);
+ g_critical("Unable to send message to DBus to start users service");
+ if (error != NULL) {
+ g_error_free(error);
+ }
return FALSE;
}
if (returnval != DBUS_START_REPLY_SUCCESS && returnval != DBUS_START_REPLY_ALREADY_RUNNING) {
- g_error("Return value isn't indicative of success: %d", returnval);
+ g_critical("Return value isn't indicative of success: %d", returnval);
return FALSE;
}
@@ -450,7 +454,7 @@ build_session_menu (gpointer userdata)
}
if (!org_freedesktop_DBus_start_service_by_name (proxy, INDICATOR_SESSION_DBUS_NAME, 0 /* Flags */, &returnval, &error)) {
- g_critical("Unable to send message to DBus to start service: %s", error != NULL ? error->message : "(NULL error)" );
+ g_critical("Unable to send message to DBus to start session service");
if (error != NULL) {
g_error_free(error);
}