On Thu, 4 Apr 2013, Allin Cottrell wrote:
[...]
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.
I just tested it on my laptop, and it works very nicely (Linux Mint/Mate).
I only have one question: on subsequent instances, the PID for that
instance (instead of a progressive number) is used to identify it on the
window title and in the taskbar. I like it, but couldn't this choice be
misleading for less POSIX-inclined users ("Wow! I don't remember opening
8,000 instances of gretl!")?
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------