Add parent distro info to wxLinuxDistributionInfo/wxGetOsDescription (PR #26641)

6 views
Skip to first unread message

Blake-Madden

unread,
Jun 27, 2026, 11:34:56 AM (23 hours ago) Jun 27
to wx-...@googlegroups.com, Subscribed

Include the distro name and (Ubuntu) code name (if available/applicable).


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

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

Commit Summary

  • fe9bab1 Add parent distro info to wxLinuxDistributionInfo and wxGetOsDescription()

File Changes

(4 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26641@github.com>

VZ

unread,
Jun 27, 2026, 12:38:34 PM (22 hours ago) Jun 27
to wx-...@googlegroups.com, Subscribed

@vadz commented on this pull request.

Thanks, I never thought this could be useful but why not, I guess.

cc @lanurmi who also worked in this area recently just in case you have any comments


In src/unix/utilsunx.cpp:

> +            *parentName = fc.Read("ID_LIKE", wxEmptyString);
+            *parentCodeName = fc.Read("UBUNTU_CODENAME", wxEmptyString);

Minor, but why do we use wxEmptyString here inconsistently with the lines above? I.e. why not just

⬇️ Suggested change
-            *parentName = fc.Read("ID_LIKE", wxEmptyString);
-            *parentCodeName = fc.Read("UBUNTU_CODENAME", wxEmptyString);
+            *parentName = fc.Read("ID_LIKE");
+            *parentCodeName = fc.Read("UBUNTU_CODENAME");

In interface/wx/platinfo.h:

> @@ -131,6 +131,18 @@ struct wxLinuxDistributionInfo
     wxString Release;           //!< The version of the distribution; e.g. "9.04"
     wxString CodeName;          //!< The code name of the distribution; e.g. "jaunty"
     wxString Description;       //!< The description of the distribution; e.g. "Ubuntu 9.04"
+    /**
+        The parent distribution name; e.g. "ubuntu debian".

Is this (and the code name) really in lower case? This looks a bit weird.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

Blake-Madden

unread,
Jun 27, 2026, 12:51:24 PM (22 hours ago) Jun 27
to wx-...@googlegroups.com, Push

@Blake-Madden pushed 1 commit.

  • 201ad2c Remove redundant argument


View it on GitHub or unsubscribe.


Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26641/before/fe9bab1b2c7ed9f9e3f78f98066fc8ba88954bf8/after/201ad2c767a836ecd2192630c6ab61a43d3f19f9@github.com>

Blake-Madden

unread,
Jun 27, 2026, 12:52:34 PM (22 hours ago) Jun 27
to wx-...@googlegroups.com, Subscribed

@Blake-Madden commented on this pull request.


In interface/wx/platinfo.h:

> @@ -131,6 +131,18 @@ struct wxLinuxDistributionInfo
     wxString Release;           //!< The version of the distribution; e.g. "9.04"
     wxString CodeName;          //!< The code name of the distribution; e.g. "jaunty"
     wxString Description;       //!< The description of the distribution; e.g. "Ubuntu 9.04"
+    /**
+        The parent distribution name; e.g. "ubuntu debian".

Yes, this is how it appears in my os-release file on Linux Mint. (I thought that looked weird too, I agree.)


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

Reply all
Reply to author
Forward
0 new messages