Loads a key file into an empty [struct@GLib.
KeyFile] structure.
If the OS returns an error when opening or reading the file, a [error@GLib.FileError] is returned. If there is a problem parsing the file, a [error@GLib.KeyFileError] is returned.
This function will never return a [error@GLib.KeyFileError.NOT_FOUND] error. If the file is not found, [
error@GLib.FileError.NOENT] is returned.
| this |
an empty key file |
| file |
the path of a filename to load, in the GLib filename encoding |
| flags |
flags from [flags@GLib.KeyFileFlags] |
|
true if a key file could be loaded, false otherwise |