Wireshark-dev: Re: [Wireshark-dev] r45615: Read the program name rather than hardcoding it
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 17 Oct 2012 11:04:53 -0700
On Oct 17, 2012, at 9:37 AM, Anders Broman <a.broman@xxxxxxxxxxxx> wrote:

> I will not have the time to rework that now. PF_DIR or program name should come from
> configure.nmake or something like that on Windows then I suppose.

Why not just have it come from epan/filesystem.c, as it does now?  What's the problem with hardcoding it?

I'll revert the change for now, so that TShark goes back to picking up the standard preferences.

At least for protocol and tap preferences, and preferences that apply to Wireshark regardless of the GUI toolkit, we want the same configuration directory for TShark and Wireshark built with GUI toolkit X and Wireshark built with GUI toolkit Y; if there are preferences that only apply to particular GUI toolkits, they should be in separate files, so that, for example, protocol and tap preferences, personal plugins, and the like are shared by everything that uses libwireshark.