[Geany] Behaviour on open more then one file on Windows

Enrico Tröger enrico.troeger at xxxxx
Wed May 21 16:10:59 UTC 2008


On Wed, 21 May 2008 09:30:41 -0000 (UTC), "Frank Lanitz"
<frank at frank.uvena.de> wrote:

> Hi guys,
> 
> I'm not that common with working on Windows, but I recognized a
> behaviour of the Geany W32 today where I'm not sure, if it is
> optimal. When marking more then one file and click on 'open with
> Geany', for very file a new instance of Geany is started. Can
> somebody of you give me some input on this? ;)

This happens because the Windows Explorer executes geany.exe <filename>
for every file you have selected. It doesn't wait until the first
instance is fully started so when it executes geany.exe for the second
file the mutex of the first instance is probably not yet created and so
the second instance can't connect to the first instance, then it thinks
no other Geany instance is running and start a new one. Same for all
other selected files.
It's some kind of race condition.

Just start Geany before and all will work fine.

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20080521/abc3eca2/attachment.pgp>


More information about the Users mailing list