A follow-up to Jack's posting at
The question Jack raised was about what happens when you
already have gretl running, and you double-click a file for
which gretl is registered as the handler (e.g. a .gdt data
file or .inp script file).
The OS defaults are: (a) for Linux and Windows you'd get the
file opened by a new gretl instance, but (b) on OS X (at least
with the new gtk-quartz build of gretl) you'd get the file
opened in the current gretl instance.
To provide choice on this on the OS X side I added (again this
is just in the gtk-quartz build) an option to open a new gretl
instance if you want.
Now on Linux and Windows I've added some functionality to
support choice. If you double-click on a gretl-type file this
will launch a new gretl instance, but that instance will now,
before showing itself, look around to see if gretl is already
running. If so, it'll put up a dialog box asking if you want a
new instance. And if you say "No" it'll pass a message to the
prior instance requesting that the file be opened, then exit.
Thi is implemented via the POSIX signals API on Linux, and the
Windows Messages API on win32.
This is in CVS and the Windows snapshot. Please test, and
report any breakage! Thanks.