RFR: 8370719: [Linux] Use /etc/os-release values for font configuration file names

Alexander Zuev kizune at openjdk.org
Mon Nov 3 22:34:46 UTC 2025


On Mon, 3 Nov 2025 22:21:19 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> But still, according to that document, the correct location for storing the file is /usr/lib/os-release, while /etc/xx is only a compatibility workaround. Since we’ve already moved from an unspecified or non-standard behavior to the standard one, why not follow the specification completely?

No, according to the [/etc/os-release man page](https://www.freedesktop.org/software/systemd/man/latest/os-release.html):

_"The file /etc/os-release takes precedence over /usr/lib/os-release. Applications should check for the former, and exclusively use its data if it exists, and only fall back to /usr/lib/os-release if that is missing."_

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28073#discussion_r2488048799


More information about the client-libs-dev mailing list