summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@redhat.com>2023-02-09 06:51:37 -0600
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2023-04-22 10:28:18 +0000
commit897c7c5ec9acea3e0d59009b4bb94d0793741805 (patch)
treed05aba96eee77fa9fcaa2141a4d65a2eb6b507e4
parent7b68931973e3c82576c9c858524579d947e65529 (diff)
downloadgnome-calendar-897c7c5ec9acea3e0d59009b4bb94d0793741805.tar.gz
weather-service: don't print error when geolocation is disabled
Fixes #954
-rw-r--r--src/weather/gcal-weather-service.c3
1 files changed, 2 insertions, 1 deletions
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 ();