Ethereal-dev: Re: [Ethereal-dev] Patch: Remember directory feature

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 14 Oct 2003 17:01:13 -0700

On Oct 10, 2003, at 10:50 AM, Ian Schorr wrote:

Attached is a patch -u against 0.9.15 enabling Ethereal to either 1) Remember the last directory browsed in "File Open" for initializing between launches of Ethereal, or 2) allow the user to specify a persistent directory to initialize the File Open dialog to.

I've checked it in, with some code fixes/cleanups, and some changes to the preferences (name changes, and making the preference for the mode be saved as a string rather than as a number).

Note that if you use Ethereal on more than one machine, and a pathname in the preferences file isn't valid on those machines, this won't necessarily do what you want. Should there be a third open "start in my home directory", or should we treat "~" as an initial component of the user-specified pathname as meaning "user's home directory" (and, at least on UNIX, treat "~{user}" as "{user}'s home directory"), with "user's home directory" on Windows being their "profile" directory, or would both be useful?

Note also that we currently have only one "last open directory", for all types of file, although we don't necessarily *use* that in the dialog boxes for all types of files. Should we continue to have only one, and make sure all file open (and file save!) dialogs use it, or should we have one for each type of file (capture, color filter, saved "Follow TCP Stream" file, etc.)?