load_from_dirs


Description:

[ Version ( since = "2.14" ) ]
public bool load_from_dirs (string file, string[] search_dirs, out string full_path, KeyFileFlags flags) throws KeyFileError, FileError

This function looks for a key file named file in the paths specified in search_dirs, loads the file into this and returns the file's full path in full_path.

If the file could not be found in any of the search_dirs, g_key_file_error_not_found is returned. If the file is found but the OS returns an error when opening or reading the file, a g_file_error is returned. If there is a problem parsing the file, a g_key_file_error is returned.

Parameters:

this

an empty KeyFile struct

file

a relative path to a filename to open and parse

search_dirs

null-terminated array of directories to search

full_path

return location for a string containing the full path of the file, or null

flags

flags from KeyFileFlags

Returns:

true if a key file could be loaded, false otherwise