GError *error = NULL;
directory = g_dir_open (sessions_dir, 0, &error);
- if (error)
+ if (error && !g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
g_warning ("Failed to open sessions directory: %s", error->message);
g_clear_error (&error);
if (!directory)
config_path = g_build_filename (CONFIG_DIR, "lightdm.conf", NULL);
config_key_file = g_key_file_new ();
result = g_key_file_load_from_file (config_key_file, config_path, G_KEY_FILE_NONE, &error);
- if (error)
+ if (error && !g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
g_warning ("Failed to open configuration file: %s", error->message);
g_clear_error (&error);
if (result)
config = g_key_file_new ();
g_key_file_load_from_file (config, USER_CONFIG_FILE, G_KEY_FILE_NONE, &error);
if (error && !g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
- g_warning ("Failed to load configuration from %s: %s", USER_CONFIG_FILE, error->message); // FIXME: Don't make warning on no file, just info
+ g_warning ("Failed to load configuration from %s: %s", USER_CONFIG_FILE, error->message);
g_clear_error (&error);
if (g_key_file_has_key (config, "UserList", "minimum-uid", NULL))