<p></p>
<p>I noticed this does <em>not</em> work properly, at least on Windows, maybe also on other platforms.<br>
The returned command is not quoted, so if it contains spaces, this will break the usage in <code>utils_open_browser</code>.</p>
<p>We probably need to quote the command in order to be able to spawn it as command line (which we want in case the user wants to add command line parameters to the browser setting). I tried <code>g_shell_quote</code> but for whatever reasons, on Windows it uses single quotes and this does not work with our spawn implementation.<br>
<code>g_app_info_get_commandline</code> doesn't seem to work on MacOS.</p>
<p>I think I will give up on this here. If someone wants to continue, feel free.</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/2444#issuecomment-918601467">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZIV5M3KHYCAQFIHGLUBZWDDANCNFSM4KYUVC3A">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ6ALMH7TKVKX2GXJFDUBZWDDA5CNFSM4KYUVC3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG3AL56Y.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/2444#issuecomment-918601467",
"url": "https://github.com/geany/geany/pull/2444#issuecomment-918601467",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>