OK, I know what's going on now but don't have a good solution for the problem. 
For non-downloaded XMLs the files to be opened are passed  as Geany command 
line arguments and everything works as on linux - they are passed to the 
existing Geany instance through the socket. However, with the downloaded XMLs 
the files to be opened aren't for some reason passed as arguments but later 
through the callback here:

https://github.com/geany/geany/blob/master/src/osx.c#L111

This means that argc==0 and no sending through sockets is performed here

https://github.com/geany/geany/blob/master/src/libmain.c#L1096

and new instance of Geany is started. The problem is that at the time when 
main() is run we don't know if Geany is going to receive the files to be opened 
through the callback or not. It's only later when we start receiving the 
callback but at this point Geany UI is already displayed.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1619#issuecomment-333368018

Reply via email to