OSDN Git Service

input: Don't print an error for missing conf file
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 18 Dec 2012 12:09:37 +0000 (14:09 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 18 Dec 2012 12:09:37 +0000 (14:09 +0200)
profiles/input/manager.c

index 622e24b..145f8a0 100644 (file)
@@ -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;