From 897c7c5ec9acea3e0d59009b4bb94d0793741805 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Thu, 9 Feb 2023 06:51:37 -0600 Subject: [PATCH] weather-service: don't print error when geolocation is disabled Fixes #954 --- src/weather/gcal-weather-service.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/weather/gcal-weather-service.c b/src/weather/gcal-weather-service.c index a3e8021d..4dc34d54 100644 --- a/src/weather/gcal-weather-service.c +++ b/src/weather/gcal-weather-service.c @@ -743,7 +743,8 @@ on_gclue_simple_creation_cb (GClueSimple *_source, { g_assert_null (self->location_service); - if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) + if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) && + !(g_dbus_error_is_remote_error (error) && strcmp (g_dbus_error_get_remote_error (error), "org.freedesktop.DBus.Error.AccessDenied") == 0)) g_warning ("Could not create GCLueSimple: %s", error->message); GCAL_RETURN ();