<p>Instead of using only hard-coded and varying defaults for Linux,<br>
MacOS and Windows, try to read the system's default command for "http"<br>
URI schemes and use it if found.<br>
If no usable default is available, fallback to the previous hard-coded<br>
defaults.</p>
<p>Besides being more user-friendly, this should solve issues on Windows<br>
where we always used "ShellExecute" and bypassed the configured browser<br>
command which led to errors on URLs with anchors (see <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="528728904" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/2405" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/2405/hovercard" href="https://github.com/geany/geany/issues/2405">#2405</a>).</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/2444'>https://github.com/geany/geany/pull/2444</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Read default browser command using GIO</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2444/files#diff-0">src/keyfile.c</a>
    (20)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/2444.patch'>https://github.com/geany/geany/pull/2444.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/2444.diff'>https://github.com/geany/geany/pull/2444.diff</a></li>
</ul>

<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?email_source=notifications&email_token=AAIOWJ75OJZ6RX2V7RXOAXDRD3FWPA5CNFSM4KYUVC3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPCSRZA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6KFIWPP5Y4T5HKJWDRD3FWPANCNFSM4KYUVC3A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3BSMTW77XNWXWS7SLRD3FWPA5CNFSM4KYUVC3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPCSRZA.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?email_source=notifications\u0026email_token=AAIOWJ75OJZ6RX2V7RXOAXDRD3FWPA5CNFSM4KYUVC3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPCSRZA",
"url": "https://github.com/geany/geany/pull/2444?email_source=notifications\u0026email_token=AAIOWJ75OJZ6RX2V7RXOAXDRD3FWPA5CNFSM4KYUVC3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPCSRZA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>