On Fri, 6 Jan 2017, Sven Schreiber wrote:
Hi,
I'm trying out something that involves launching external programs, and I
have (re-) discovered the "launch" command (only actively remembered the
"!"
command for synchronous invocation).
But I noticed a surprising difference which I think could be a bug:
While gretl's current CWD setting is passed to the external program as its
active directory when using "!", another path/directory is used when using
"launch".
That other directory is not gretl's dotdir, either. My suspicion is that it
might be the last-opened directory (the one which is also remembered by the
datafile-open window, if the user chooses it that way).
I hope that explanation was clear enough. I don't see any reason why "!"
and
"launch" should behave differently in that respect.
For "launch" we were using a GLib convenience function that didn't
support setting a working directory for the child process. I've now
modified this to use a more complex function that allows for such a
setting.
Allin