StandardPath

Locations that can be passed to writablePath and standardPaths functions.

Values

ValueMeaning
data

General location of persisted application data. Every application should have its own subdirectory here. Note: on Windows it's the same as config path.

DataStandardPath.data
config

General location of configuration files. Every application should have its own subdirectory here. Note: on Windows it's the same as data path. To distinguish config directory one may use roamingPath.

ConfigStandardPath.config
cache

Location of cached data. Note: Windows does not provide specical directory for cache data. On Windows data/cache is used as cache folder.

CacheStandardPath.cache
desktop

User's desktop directory.

DesktopStandardPath.desktop
documents

User's documents.

DocumentsStandardPath.documents
pictures

User's pictures.

PicturesStandardPath.pictures
music

User's music.

MusicStandardPath.music
videos

User's videos (movies).

VideosStandardPath.videos
downloads

Directory for user's downloaded files.

DownloadStandardPath.downloads
templates

Location of file templates (e.g. office suite document templates). Note: Not available on OS X.

Templatestemplates
publicShare

Public share folder. Note: Not available on Windows.

PublicShareStandardPath.publicShare
fonts

Location of fonts files. Note: don't rely on this on freedesktop, since it uses hardcoded paths there. Better consider using fontconfig library

FontsStandardPath.fonts
applications

User's applications.

ApplicationsStandardPath.applications

See Also

writablePath, standardPaths

Meta