Skip to content

Releases: adrg/xdg

v0.5.0

08 Jul 20:50
Compare
Choose a tag to compare

Changelog

  • user-dirs.dirs config file is now parsed on Unix-like operating systems (except for macOS and Plan 9).
    See XDG user directories README section for more details.
  • Updated golang.org/x/sys dependency to the latest version.

Internal

  • Moved all path related functionality in internal pathutil package.
  • Added internal userdirs package:
    • Moved xdg.UserDirectories to userdirs.Directories.
    • Added parsing functions for user-dirs.dirs config file.
  • Improved package testing.

v0.4.0

27 Oct 13:29
Compare
Choose a tag to compare

Changelog

Windows

  • Added support for Known Folders.
    Appropriate folders are now used as defaults for XDG environment variables which are not set.
  • Added more search directories for config files.
  • Added more search directories for applications.
  • The fallback path for templates is now %APPDATA%\Microsoft\Windows\Templates instead of the legacy %USERPROFILE%\Templates path.

See https://github.com/adrg/xdg#default-locations for more details.

Internal

  • Code coverage is now 100%.
  • Improved package structure.
  • Improved documentation.

v0.3.4

08 Sep 12:23
Compare
Choose a tag to compare

Changelog

v0.3.3

07 Apr 17:45
Compare
Choose a tag to compare

Changelog

  • Added workaround for os.Stat bugs on Windows, described by issues golang/go#33357, microsoft/Windows-Containers#97 and golang/go#34900. On some Windows versions, os.Stat returns an error for valid socket files and for symbolic links to directories.
  • Enabled build for the js/wasm architecture
  • Minor internal refactoring
  • Improved testing

v0.3.2

10 Mar 20:43
ecf63cb
Compare
Choose a tag to compare

Changelog

  • Added Plan 9 support
  • Improved documentation

v0.3.1

22 Feb 16:24
b9ccb1f
Compare
Choose a tag to compare

Changelog

  • The default value for the XDG_CONFIG_HOME environment variable on macOS systems has been
    changed from ~/Library/Preferences to ~/Library/Application Support.
  • The default value for the XDG_CONFIG_DIRS environment variable on macOS systems has been
    changed from [/Library/Preferences] to [~/Library/Preferences, /Library/Application Support, /Library/Preferences].

See more details regarding the change in PR #13.

NOTE: the package will still find config files placed relative to the ~/Library/Preferences directory.
However, if XDG_CONFIG_HOME is not set, it will suggest saving config files relative to the ~/Library/Application Support directory.

v0.3.0

13 Jan 19:41
Compare
Choose a tag to compare

Changelog