<p></p>
<p>So let me chime in with an alternative solution.<br>
I'm on Win10, geany 1.36 (built on or after 2019-09-28).</p>
<p>Recently, I ran into this very same issue. For background info: I recently upgraded to WSL2, which required the "Virtual Machine Platform" optional feature. So, we're talking Hyper-V again, I guess. Just to be clear - I'm running a windows install, not a Geany inside the linux 'VM'.</p>
<p>My solution was to change the port number of the IPC socket, which is by default 49876, to another number (I randomly picked 33492). Since I was to lazy to compile, I did this by grabbing my favourite hex editor, and changing two occurences of 0xd4 0xc2 inside libgeany-0.dll to 0xd4 0x82. Now it opens files again in the same instance! Hurrah!</p>
<p>I believe the reason is that Hyper-V acts funny if you use ports inside the Dynamic ports range, which starts at 49152, but I didn't check that. If someone wants to publish a patch to that extend, I'm happy to experiment a bit around if another port number is wanted.</p>
<p>Hope this is useful for someone!</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/issues/2101#issuecomment-687440602">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZPYU2XNPI4KS7BRMDSEFUKNANCNFSM4G4V7S2A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJYOZWVB73NDF2JMSTLSEFUKNA5CNFSM4G4V7S2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFD4YFWQ.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/issues/2101#issuecomment-687440602",
"url": "https://github.com/geany/geany/issues/2101#issuecomment-687440602",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>