unstable since: 1.0

Declaration [src]

const char*
valent_get_user_directory (
  GUserDirectory directory

Description [src]

Returns the full path of a special directory using its logical id.

This function is a safe wrapper around g_get_user_special_dir() that always returns a valid path to an existing directory. The fallback path used is the return value of g_get_home_dir().

Available since: 1.0



Type: GUserDirectory

A GUserDirectory.

Return value

Type: const char*

The path to the specified special directory.

The data is owned by the called function.
The value is a NUL terminated UTF-8 string.