- /* FIXME: This should be sent in the greeter connection */
- 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)
- g_warning ("Failed to open configuration file: %s", error->message);
- g_clear_error (&error);
- if (result)
+ config_load_from_standard_locations (config_get_instance (), NULL, NULL);
+
+ value = config_get_string (config_get_instance (), "LightDM", "sessions-directory");
+ if (value)