Enum StandardPath
Location types that can be passed to writablePath
and standardPaths
functions.
enum StandardPath
: int { ... }
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.
Enum members
Name | Description |
---|---|
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. |
cache
|
Location of cached data.
NoteNot available on Windows. |
config
|
General location of configuration files. Every application should have its own subdirectory here.
Noteon Windows it's the same as |
data
|
General location of persisted application data. Every application should have its own subdirectory here.
Noteon Windows it's the same as |
desktop
|
User's desktop directory. |
documents
|
User's documents. |
downloads
|
Directory for user's downloaded files. |
fonts
|
Location of fonts files.
Notedon't rely on this on freedesktop, since it uses hardcoded paths there. Better consider using fontconfig library |
music
|
User's music. |
pictures
|
User's pictures. |
publicShare
|
Public share folder.
NoteNot available on Windows. |
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. |
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. |
templates
|
Location of file templates (e.g. office suite document templates).
NoteNot available on OS X. |
videos
|
User's videos (movies). |