<p></p>
<p>Yay!<br>
I agree also that the pretty name is redundant.</p>
<p>The result of <code>g_get_os_info</code> must be freed even it is not explicitly stated in the docs (<a href="https://gitlab.gnome.org/GNOME/glib/-/blob/master/glib/gutils.c#L1507" rel="nofollow">https://gitlab.gnome.org/GNOME/glib/-/blob/master/glib/gutils.c#L1507</a>).</p>
<p>Output on ArchLinux:</p>
<pre><code>10:08:55: Geany INFO             : OS Information:
10:08:55: Geany INFO            :   Name       : Arch Linux (arch/)
10:08:55: Geany INFO            :   Pretty Name: Arch Linux
10:08:55: Geany INFO            :   Version    :  ()
</code></pre>
<p>Output on Windows 7:</p>
<pre><code>22:50:54: Geany INFO             : OS Information:
22:50:54: Geany INFO            :   Name       : Windows (windows/)
22:50:54: Geany INFO            :   Pretty Name: Windows 7 SP17Vista SP2Vista SP1VistaXP SP3XP SP2XP SP1XP
22:50:54: Geany INFO            :   Version    : 7 SP17Vista SP2Vista SP1VistaXP SP3XP SP2XP SP1XP (7_sp17vista_sp2vista_sp1vistaxp_sp3xp_sp2xp_sp1xp)
</code></pre>
<p>The missing version on ArchLinux is OK because it's a rolling release and <code>/etc/os-release</code> doesn't have any VERSION key at all.<br>
I'm not sure about the weird looking version on Windows, either it is just my installation or it usually looks like this ... :)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2498#issuecomment-629099805">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5FDCGWNWIRHOQ3VBDRRT3C5ANCNFSM4M4VSF6Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ5RSYO6RIK5EPAGEETRRT3C5A5CNFSM4M4VSF62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEV7U2HI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2498#issuecomment-629099805",
"url": "https://github.com/geany/geany/pull/2498#issuecomment-629099805",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>