Documentation ¶
Overview ¶
Package xdg wraps around glib's xdg directory functions, to allow retrieval of the names of config directories.
Index ¶
- func GetHomeDir() string
- func GetSystemConfigDirs() []string
- func GetSystemDataDirs() []string
- func GetUserCacheDir() string
- func GetUserConfigDir() string
- func GetUserDataDir() string
- func GetUserDesktopDir() string
- func GetUserDocumentsDir() string
- func GetUserDownloadDir() string
- func GetUserMusicDir() string
- func GetUserPicturesDir() string
- func GetUserPublicShareDir() string
- func GetUserRuntimeDir() string
- func GetUserTemplatesDir() string
- func GetUserVideosDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSystemConfigDirs ¶
func GetSystemConfigDirs() []string
GetSystemConfigDirs gets a list of the config directories of the system.
func GetSystemDataDirs ¶
func GetSystemDataDirs() []string
GetSystemDataDirs gets a list of the data directories of the system.
func GetUserCacheDir ¶
func GetUserCacheDir() string
GetUserCacheDir gets the current users cache directory.
func GetUserConfigDir ¶
func GetUserConfigDir() string
GetUserConfigDir gets the current users configuration directory.
func GetUserDataDir ¶
func GetUserDataDir() string
GetUserDataDir gets the current users data directory.
func GetUserDesktopDir ¶
func GetUserDesktopDir() string
GetUserDesktopDir gets the current users desktop directory.
Or "$HOME/Desktop" if not set.
func GetUserDocumentsDir ¶
func GetUserDocumentsDir() string
GetUserDocumentsDir gets the current users documents directory.
May be blank if not set.
func GetUserDownloadDir ¶
func GetUserDownloadDir() string
GetUserDownloadDir gets the current users downloads directory.
May be blank if not set.
func GetUserMusicDir ¶
func GetUserMusicDir() string
GetUserMusicDir gets the current users music directory.
May be blank if not set.
func GetUserPicturesDir ¶
func GetUserPicturesDir() string
GetUserPicturesDir gets the current users pictures directory.
May be blank if not set.
func GetUserPublicShareDir ¶
func GetUserPublicShareDir() string
GetUserPublicShareDir gets the current users public directory.
May be blank if not set.
func GetUserRuntimeDir ¶
func GetUserRuntimeDir() string
GetUserRuntimeDir gets the current users runtime directory.
func GetUserTemplatesDir ¶
func GetUserTemplatesDir() string
GetUserTemplatesDir gets the current users templates directory.
May be blank if not set.
func GetUserVideosDir ¶
func GetUserVideosDir() string
GetUserVideosDir gets the current users videos directory.
May be blank if not set.
Types ¶
This section is empty.