From 3db4f035f8d755e4032e8253650ad6b983ec583c Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Wed, 13 Jul 2022 01:03:27 +0200 Subject: src/indicator-service.c: Make failure to connect to the session DBus fatal fixes https://github.com/AyatanaIndicators/libayatana-indicator/issues/64 --- src/indicator-service.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/indicator-service.c b/src/indicator-service.c index be1db51..bb035e9 100644 --- a/src/indicator-service.c +++ b/src/indicator-service.c @@ -3,9 +3,11 @@ An object used to provide a simple interface for a service to query version and manage whether it's running. Copyright 2009 Canonical Ltd. +Copyright 2022 Robert tari Authors: Ted Gould + Robert Tari This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -25,8 +27,6 @@ License along with this library. If not, see #include "config.h" #endif -#include /* exit() */ - #include #include "indicator-service.h" @@ -349,10 +349,9 @@ bus_get_cb (__attribute__((unused)) GObject * object, GAsyncResult * res, gpoint GError * error = NULL; GDBusConnection * connection = g_bus_get_finish(res, &error); - if (error != NULL) { - g_warning("Unable to get a connection to the session DBus: %s", error->message); - g_error_free(error); - exit (0); + if (error != NULL) + { + g_error("Unable to get a connection to the session DBus: %s", error->message); } IndicatorServicePrivate * priv = indicator_service_get_instance_private(user_data); -- cgit v1.2.3