resource_lookup


Description:


[ Version ( since = "4.2" ) ]
public string resource_lookup (ResourceType type, string filename)

Looks for a resource of the specified type whose relative path matches filename.

filename can either reference a regular file, in which case it must not end with a slash character ('/'), or a directory, when filename contains a trailing slash character ('/').

The caller is responsible to free the returned string using g_free when no longer needed.

Parameters:

type

type of resource to lookup.

filename

relative filename of the resource, e.g. "xfwm4/xfwmrc".

Returns:

the absolute path to the first file or directory in the search path, that matches filename or null if no such file or directory could be found.


Namespace: Xfce