|
From: Hans-Bernhard B. <br...@ph...> - 2005-08-10 13:01:41
|
Bastian M=E4rkisch wrote:
> Currently tilde expansion of paths like "~/gnuplot.history" via gp_expa=
nd_tilde()=20
> on Windows 9x will fail unless the user sets the HOME environment varia=
ble.
And because that's bad, wgnuplot prints this message in such case,=20
right on the startup screen:
warning: no HOME found
> The string containing the path is left unchanged and does therefore not=
contain
> a valid path.=20
There's not much that could usefully be done about that --- there's no=20
single replacement that would be equally applicable for all Windows=20
platforms.
Now that we have the code to locate a suitable fall-back location (for=20
wgnuplot.ini), arguably all other state save files should go there, too
(i.e. gnuplot.ini, the cross-session history file, and whatever else).
> 2) Use a default directory instead, where 'default' could be the curren=
t
> directory or the directory where gnuplot.exe resides.=20
That's pretty much guaranteed to be wrong (not to mention isn't even=20
accessible to normal users on a properly installed, modern Windows).
|