KeyFile.loadFromDirs

This function looks for a key file named file in the paths specified in search_dirs, loads the file into key_file and returns the file's full path in full_path. If the file could not be loaded then an error is set to either a GFileError or GKeyFileError. Since 2.14

class KeyFile
int
loadFromDirs
(
string file
,
string[] searchDirs
,
out string fullPath
,)

Parameters

file string

a relative path to a filename to open and parse. [type filename]

searchDirs string[]

NULL-terminated array of directories to search. [array zero-terminated=1][element-type filename]

fullPath string

return location for a string containing the full path of the file, or NULL. out[type filename][allow-none]

flags GKeyFileFlags

flags from GKeyFileFlags

Return Value

Type: int

TRUE if a key file could be loaded, FALSE otherwise

Throws

GException on failure.

Meta