> What about having Geany not open a new instance when it's called with no 
> files under OSX, but just do as if files were passed (but none are), so 
> activating the main window and stuff?

I'm not sure I understand - do you mean somehow forwarding the stuff to the 
main instance from the script? I don't know how to do that - from OS X 
perspective a new process was successfully started - and it's the script - so 
when the script terminates the process is dead from the OS X perspective and it 
won't receive the callback.

The problem is that OS X seems to do two different things when launching 
applications - when it's a native application, it won't launch a new instance 
of it from the bundle and there must be something within the application which 
makes new instances. But when it starts a script and probably also some 
command-line application too, it launches it every time. And we need the script 
because all the simulated GTK environment has to be set up there.

-- 
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-333494302

Reply via email to