get_user_special_dir
Description:
[ Version ( since = "2.14" ) ]
[ CCode ( cname = "g_get_user_special_dir" ) ]
public unowned string get_user_special_dir (UserDirectory directory)
[ CCode ( cname = "g_get_user_special_dir" ) ]
public unowned string get_user_special_dir (UserDirectory directory)
Returns the full path of a special directory using its logical id.
On UNIX this is done using the XDG special user directories. For compatibility with existing practise, g_user_directory_desktop falls back to `$HOME/Desktop` when XDG special user directories have not been set up.
Depending on the platform, the user might be able to change the path of the special directory without requiring the session to restart; GLib will not reflect any change once the special directories are loaded.
Parameters:
directory |
the logical id of special directory |
Returns:
the path to the specified special directory, or null if the logical id was not found. The returned string is owned by GLib and should not be modified or freed. |
Namespace: GLib.Environment
Package: glib-2.0