Compatibility
- xdge v2.0.0:
Cmd.termnow places the app in its own subdirectory ofXDG_CONFIG_HOME,XDG_DATA_HOME,XDG_CACHE_HOME,XDG_STATE_HOMEandXDG_RUNTIME_DIR. Existing files in the shared base directory are no longer found.
Features
- xdge environment variables: non-letter and non-digit characters in the app name become underscores, so
my-appreadsMY_APP_CONFIG_DIR, which can be set from a shell.
Fixes
- xdge cache directory:
Cmd.cache_termno longer fails when$HOMEis unset, and--cache-dirnow wins over the environment even when it names the default. - xdge runtime directory: created with mode 0700 as documented, rather than 0755.
- xdge default paths: a relative
$HOMEis no longer applied twice, avoiding paths like./home/./home/.config/myapp. - xdge XDG variables: empty
XDG_*variables are treated as unset instead of resolving to$HOME.
These changes were merged by Anil Madhavapeddy via the various improvements for edge conditions pull request, and are grouped under the v2.0.0 heading in xdge's CHANGES file.