New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS Info Improvements #2618
OS Info Improvements #2618
Conversation
WFM, result in list above. |
Debian:
|
Windows 7: |
Is the "bullseye/sid" part parenthesized or exactly as above? |
Well with the weird Debian naming scheme I guess it doesn't have a per version nickname like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also making the strings untranslated makes it mergable now we are in string freeze :)
Just for completeness: |
I get
Question: the function is exported as an API function to plugins. Is this something plugins are actually interested in? |
@elextr Bullseye is actually name of the next major one -- Running testing here @codebrainz Just compiled your branch with nix package manager -- still describing itself as Debian:
But I guess this is about g_get_os_inf() ist working. |
@techee AFAICT its not actually in the API, the documentation message is not a doxygen comment and the function isn't marked In theory a plugin might use the info, but given the variability (and as @frlan showed the fact that derived distros may show as the base distro) its probably not much use to a plugin. |
@frlan the g_get_os_info() docs say "On Linux this comes from the /etc/os-release file." so if your distro is derived from Debian its probably not modifying that file. So as much as I like to blame G* for everything, in this case its probably not their fault. |
No, but it has an API version in the
Also, I don't see why a plugin would need that info if it's not an actual mean of identifying the platform (and even then, it's probably not a good metric to do anything). As is it's really meant as a human-readable clue rather than something formal. So ATM I don't see any reason for it to make it to plugin API anytime soon. |
I just put that so it was easy to see when it was added, but agree the |
@SInCE sorry @codebrainz didn't mean to ping you, he just forgot to quote some Doxygen syntax. |
3304ab2
to
56fa641
Compare
Updated according the comments, squashed, rebased, and force pushed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGBI now
Should we merge this last minute, or wait till next release? I don't mind either way, it's not like it's a critical enhancement. |
I'd like to have it merged. It will help users to help us when handling bug reports and the change is pretty harmless. |
Handles macOS and older GLibs better, as a follow-up for #2498.
Some tests so far:
OS: macOS
OS: Windows 7 SP17Vista SP2Vista SP1VistaXP SP3XP SP2XP SP1XP (Unknown)
OS: Windows 10 2004 (Unknown)
OS: Debian GNU/Linux bullseye/sid
OS: Ubuntu 20.04.1 LTS (focal)
OS: Linux Mint 20 (ulyana)
OS: Linux
If it gets enough testing, could make 1.37, else we can leave for next release.