load_from_data_dirs


Description:

public bool load_from_data_dirs (string file, out string full_path, KeyFileFlags flags) throws KeyFileError, FileError

Looks for a key file named file in the paths returned from [func@GLib.

get_user_data_dir] and [func@GLib.get_system_data_dirs].

The search algorithm from [method@GLib.KeyFile.load_from_dirs] is used. If file is found, it’s loaded into this and its full path is returned in full_path.

If the file could not be loaded then either a [error@GLib.FileError] or [error@GLib.KeyFileError] is returned.

Parameters:

this

an empty [struct@GLib.KeyFile] struct

file

a relative path to a filename to open and parse

full_path

return location for a string containing the full path of the file, or `NULL` to ignore

flags

flags from [flags@GLib.KeyFileFlags]

Returns:

true if a key file could be loaded, false otherwise