From 09187679ca10fec0ad379d31a0d06994ebd84fc3 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Fri, 6 Oct 2023 12:31:50 -0400 Subject: config: Don't warn about missing conf.d directory --- src/gclue-config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gclue-config.c b/src/gclue-config.c index 70822ed..e04d608 100644 --- a/src/gclue-config.c +++ b/src/gclue-config.c @@ -569,8 +569,10 @@ gclue_config_init (GClueConfig *config) dir = g_dir_open (CONFIG_D_DIRECTORY, 0, &error); if (error != NULL) { - g_warning ("Failed to open %s: %s", - CONFIG_D_DIRECTORY, error->message); + if (!g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT)) { + g_warning ("Failed to open %s: %s", + CONFIG_D_DIRECTORY, error->message); + } goto out; } -- cgit v1.2.3