Read Linux distribution info from os-release file (PR #23712)

13 views
Skip to first unread message

Scott Talbert

unread,
Jul 14, 2023, 12:15:00 PM7/14/23
to wx-...@googlegroups.com, Subscribed

The Linux distribution community has somewhat deprecated the lsb_release utility and has standardized on a new file, os-release, that can be simply parsed to get the same information. Attempt to read this file in /etc/os-release, then /usr/lib/os-release, and finally, fall back to using the lsb_release utility if neither of those files are found.

See: https://www.freedesktop.org/software/systemd/man/os-release.html
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2184391


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/23712

Commit Summary

  • 73d2f71 Read Linux distribution info from os-release file

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/23712@github.com>

VZ

unread,
Jul 14, 2023, 12:20:37 PM7/14/23
to wx-...@googlegroups.com, Subscribed

Thanks, this is definitely useful as I've already ran into the problems due to lsb_release absence in other (non-wx) contexts myself. I still have no idea why did it have to be deprecated, but I'm pretty sure it's much simpler to apply this patch than to do anything else, so I'll just do this (and backport it to 3.2 too).

Thanks again!


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/23712/c1636086471@github.com>

VZ

unread,
Jul 20, 2023, 9:30:41 AM7/20/23
to wx-...@googlegroups.com, Subscribed

Closed #23712 via aef7df6.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/23712/issue_event/9874596597@github.com>

Reply all
Reply to author
Forward
0 new messages