StandardPath

Location types that can be passed to writablePath and standardPaths functions.

Not all these paths are suggested for showing in file managers or file dialogs. Some of them are meant for internal application usage or should be treated in special way. On usual circumstances user wants to see Desktop, Documents, Downloads, Pictures, Music and Videos directories.

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.

config

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

cache

Location of cached data. Note: Not available on Windows.

desktop

User's desktop directory.

documents

User's documents.

pictures

User's pictures.

music

User's music.

videos

User's videos (movies).

downloads

Directory for user's downloaded files.

templates

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

publicShare

Public share folder. Note: Not available on Windows.

fonts

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

applications

User's applications. This has different meaning across platforms. On Windows it's directory where links (.lnk) to programs for Start menu are stored. On OS X it's folder where applications are typically put. On Freedesktop it's directory where .desktop files are put.

startup

Automatically started applications. On Windows it's directory where links (.lnk) to autostarted programs are stored. On OSX it's not available. On Freedesktop it's directory where autostarted .desktop files are stored.

roaming

Roaming directory that stores a user data which should be shared between user profiles on different machines. Windows-only.

savedGames

Common directory for game save files. Windows-only.

See Also

Meta