<p></p>
<blockquote>
<p>I would just leave it as it is - this is not something worth ifdefs or any extra code IMO.</p>
</blockquote>
<p>Too late, I already created follow-up <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="718723569" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/2618" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/2618/hovercard" href="https://github.com/geany/geany/pull/2618">#2618</a>, which puts it in a self-contained utils function, making the main code flow cleaner than in this PR and allowing support for older GLibs and MacOS/others. There was already <code>#ifdef</code> in there, now there's some more, which eventually will be able to mostly be removed. One could argue it's overkill for such a trivial "feature", but Geany's issue tracker has a chronic problem of people not reporting OS/version, so making that easier is, IMO, worth the extra <code>#ifdef</code>-ed code.</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-707256404">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYEHLVQQY7PAIV3DS3SKM5MVANCNFSM4M4VSF6Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ4PXSZPXNMPHWMNAPDSKM5MVA5CNFSM4M4VSF62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFIT6AVA.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-707256404",
"url": "https://github.com/geany/geany/pull/2498#issuecomment-707256404",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>