Thorsten Wilms wrote:
On Thu, 2010-07-22 at 23:32 +0200, Krzysztof KosiĆski wrote:
When you open a new file from the file manager, a new instance is started. When you do it from the menu, a new window is created in the existing instance.
I wasn't aware of that before I had the problem with the delay, noticed the difference by chance and then knew it could only be because of new vs same instance.
But why would I want to open files in new instances? opening files via file manager is often more comfortable for me. Is there a way to not have this create new instances? If so, could/should it be made default?
Yes, when starting Inkscape we could check right away whether Inkscape is already open, and if so we could just make the other instance open the file and exit ASAP. Here is a discussion on some methods to do this (and how to avoid race conditions): http://www.flounder.com/nomultiples.htm
Unfortunately it's just windows based. Anyone familiar enough with pthreads/GTK/Glib or whatever we need to do this in a cross-platform manner? (Well, I have some experience with pthreads, so I could probably get the mutex stuff to work, but I have no idea about the rest.)