Enumeration (GI Enum)

GLib-2.0GLibUserDirectorySince 2.14

These are logical ids for special directories which are defined depending on the platform used. You should use g_get_user_special_dir() to retrieve the full path associated to the logical id.

The GLib.UserDirectory enumeration can be extended at later date. Not every platform has a directory for every logical id in this enumeration.

2.14

Index
DIRECTORY_DESKTOP: 0

the user's Desktop directory

DIRECTORY_DOCUMENTS: 1

the user's Documents directory

DIRECTORY_DOWNLOAD: 2

the user's Downloads directory

DIRECTORY_MUSIC: 3

the user's Music directory

DIRECTORY_PICTURES: 4

the user's Pictures directory

DIRECTORY_PROJECTS: 8

The user's Projects directory.

2.90

DIRECTORY_PUBLIC_SHARE: 5

the user's shared directory

DIRECTORY_TEMPLATES: 6

the user's Templates directory

DIRECTORY_VIDEOS: 7

the user's Movies directory

N_DIRECTORIES: 9

the number of enum values