diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-02-18 15:54:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-18 15:54:55 +0100 |
commit | b0f3bb7a9ab4390a507f0f0b5b46c1d9b9667272 (patch) | |
tree | e45575c5d823c95923ba6f0a05b633e2f5ac1fd0 /vendor/github.com/adrg/xdg/user_dirs.go | |
parent | 43020184373abb624971bb81aebd34ea214addee (diff) | |
parent | c7c877637167e24f3425a2f7042295cf0082537e (diff) |
Use $XDG_STATE_HOME for state.yml (#2936)
- **PR Description**
fixes #2856, #2794, #818
Diffstat (limited to 'vendor/github.com/adrg/xdg/user_dirs.go')
-rw-r--r-- | vendor/github.com/adrg/xdg/user_dirs.go | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/vendor/github.com/adrg/xdg/user_dirs.go b/vendor/github.com/adrg/xdg/user_dirs.go new file mode 100644 index 000000000..72088748d --- /dev/null +++ b/vendor/github.com/adrg/xdg/user_dirs.go @@ -0,0 +1,40 @@ +package xdg + +// XDG user directories environment variables. +const ( + envDesktopDir = "XDG_DESKTOP_DIR" + envDownloadDir = "XDG_DOWNLOAD_DIR" + envDocumentsDir = "XDG_DOCUMENTS_DIR" + envMusicDir = "XDG_MUSIC_DIR" + envPicturesDir = "XDG_PICTURES_DIR" + envVideosDir = "XDG_VIDEOS_DIR" + envTemplatesDir = "XDG_TEMPLATES_DIR" + envPublicShareDir = "XDG_PUBLICSHARE_DIR" +) + +// UserDirectories defines the locations of well known user directories. +type UserDirectories struct { + // Desktop defines the location of the user's desktop directory. + Desktop string + + // Download defines a suitable location for user downloaded files. + Download string + + // Documents defines a suitable location for user document files. + Documents string + + // Music defines a suitable location for user audio files. + Music string + + // Pictures defines a suitable location for user image files. + Pictures string + + // VideosDir defines a suitable location for user video files. + Videos string + + // Templates defines a suitable location for user template files. + Templates string + + // PublicShare defines a suitable location for user shared files. + PublicShare string +} |