summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKira Bruneau <kira.bruneau@pm.me>2023-10-06 12:31:50 -0400
committerKira Bruneau <kira.bruneau@pm.me>2023-10-13 10:35:49 -0400
commit09187679ca10fec0ad379d31a0d06994ebd84fc3 (patch)
tree9085a2d2beb188866c08acd0ff30ff191ded9c08
parent8a24f60969d4c235d9918796c38a6a9c42e10131 (diff)
config: Don't warn about missing conf.d directory
-rw-r--r--src/gclue-config.c6
1 files 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;
}