From 337864d65bb519dc869eca4c0d2d5e3010a4d5f4 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 18 Dec 2012 14:09:37 +0200 Subject: [PATCH] input: Don't print an error for missing conf file --- profiles/input/manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiles/input/manager.c b/profiles/input/manager.c index 622e24b54..145f8a0e7 100644 --- a/profiles/input/manager.c +++ b/profiles/input/manager.c @@ -119,7 +119,8 @@ static GKeyFile *load_config_file(const char *file) keyfile = g_key_file_new(); if (!g_key_file_load_from_file(keyfile, file, 0, &err)) { - error("Parsing %s failed: %s", file, err->message); + if (!g_error_matches(err, G_FILE_ERROR, G_FILE_ERROR_NOENT)) + error("Parsing %s failed: %s", file, err->message); g_error_free(err); g_key_file_free(keyfile); return NULL; -- 2.47.3