adrg/xdg (github.com/adrg/xdg)
### [`v0.5.2`](https://redirect.github.com/adrg/xdg/releases/tag/v0.5.2)
[Compare Source](https://redirect.github.com/adrg/xdg/compare/v0.5.1...v0.5.2)
##### Changelog
- Updated logic of `xdg.RuntimeFile`: due to the special nature of the `runtime directory`, the function no longer attempts to create it if it does not exist. If that's the case, the function uses the operating system's `temporary directory` as a fallback. The function still creates subdirectories relative to the base runtime directory or its fallback.
Justification: the creation of the runtime directory is not in the scope of this package as it has special requirements defined by the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/latest). Relevant excerpt:
> The lifetime of the directory MUST be bound to the user being logged in. It MUST be created when the user first logs in and if the user fully logs out the directory MUST be removed. If the user logs in more than once they should get pointed to the same directory, and it is mandatory that the directory continues to exist from their first login to their last logout on the system, and not removed in between. Files in the directory MUST not survive reboot or a full logout/login cycle.
Also, on `Linux`, the parent directories of the default user runtime directory are owned by the root user so they cannot be created by a regular user. [pam_systemd](https://www.freedesktop.org/software/systemd/man/latest/pam_systemd.html) is usually responsible for creating the runtime directory (`/run/user/$UID`).
### [`v0.5.1`](https://redirect.github.com/adrg/xdg/releases/tag/v0.5.1)
[Compare Source](https://redirect.github.com/adrg/xdg/compare/v0.5.0...v0.5.1)
##### Changelog
- Added support for the non-standard `XDG_BIN_HOME` base directory.
See [XDG base directories](https://redirect.github.com/adrg/xdg?tab=readme-ov-file#xdg-base-directory) README section for more details.
- Added more config and data search locations on `macOS`.
- Added `~/.config` at the end of the list of default locations for `XDG_CONFIG_DIRS`.
- Added `~/.local/share` at the end of the list of default locations for `XDG_DATA_DIRS`.
- Added more application search locations on `Windows`:
- `%ProgramFiles%`
- `%ProgramFiles%\Common Files`
- `%LOCALAPPDATA%\Programs`
- `%LOCALAPPDATA%\Programs\Common`
##### Internal
- Updated `golang.org/x/sys` dependency to the latest version.
- Improved package testing.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
v0.5.0
->v0.5.2
Release Notes
adrg/xdg (github.com/adrg/xdg)
### [`v0.5.2`](https://redirect.github.com/adrg/xdg/releases/tag/v0.5.2) [Compare Source](https://redirect.github.com/adrg/xdg/compare/v0.5.1...v0.5.2) ##### Changelog - Updated logic of `xdg.RuntimeFile`: due to the special nature of the `runtime directory`, the function no longer attempts to create it if it does not exist. If that's the case, the function uses the operating system's `temporary directory` as a fallback. The function still creates subdirectories relative to the base runtime directory or its fallback. Justification: the creation of the runtime directory is not in the scope of this package as it has special requirements defined by the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/latest). Relevant excerpt: > The lifetime of the directory MUST be bound to the user being logged in. It MUST be created when the user first logs in and if the user fully logs out the directory MUST be removed. If the user logs in more than once they should get pointed to the same directory, and it is mandatory that the directory continues to exist from their first login to their last logout on the system, and not removed in between. Files in the directory MUST not survive reboot or a full logout/login cycle. Also, on `Linux`, the parent directories of the default user runtime directory are owned by the root user so they cannot be created by a regular user. [pam_systemd](https://www.freedesktop.org/software/systemd/man/latest/pam_systemd.html) is usually responsible for creating the runtime directory (`/run/user/$UID`). ### [`v0.5.1`](https://redirect.github.com/adrg/xdg/releases/tag/v0.5.1) [Compare Source](https://redirect.github.com/adrg/xdg/compare/v0.5.0...v0.5.1) ##### Changelog - Added support for the non-standard `XDG_BIN_HOME` base directory. See [XDG base directories](https://redirect.github.com/adrg/xdg?tab=readme-ov-file#xdg-base-directory) README section for more details. - Added more config and data search locations on `macOS`. - Added `~/.config` at the end of the list of default locations for `XDG_CONFIG_DIRS`. - Added `~/.local/share` at the end of the list of default locations for `XDG_DATA_DIRS`. - Added more application search locations on `Windows`: - `%ProgramFiles%` - `%ProgramFiles%\Common Files` - `%LOCALAPPDATA%\Programs` - `%LOCALAPPDATA%\Programs\Common` ##### Internal - Updated `golang.org/x/sys` dependency to the latest version. - Improved package testing.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.