From 0a9a95f248568da85eb2e395d849017d4fdca037 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Wed, 16 Oct 2013 19:16:08 -0400 Subject: Warn when an indicator doesn't get respawned anymore --- libindicator/indicator-ng.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libindicator/indicator-ng.c b/libindicator/indicator-ng.c index 8d3304b..f2ffa6d 100644 --- a/libindicator/indicator-ng.c +++ b/libindicator/indicator-ng.c @@ -498,7 +498,11 @@ indicator_ng_service_vanished (GDBusConnection *connection, /* take care not to start it if it repeatedly crashes */ now = g_get_monotonic_time (); if (now - self->last_service_restart < 1 * G_USEC_PER_SEC) - return; + { + g_warning ("The indicator '%s' vanished too quickly after appearing. It won't " + "be respawned anymore, as it could be crashing repeatedly.", self->name); + return; + } self->last_service_restart = now; -- cgit v1.2.3