Ethereal-dev: [Ethereal-dev] Plugin-Location under Windows

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

From: "Dr.-Ing. Gerrit Gehnen" <G.Gehnen@xxxxxxxx>
Date: Tue, 24 Apr 2001 16:14:48 +0200
Hello,

I just installed the 0.8.17 installation package for Win32. It's fine,
but it raises more than ever the question about the right path for
plugins under Windows.
The package installed under the correct place for my system:
F:\Programme\ethereal
But as you all know ethereal searches under some places for its plugins,
but never under this location......

What's about adding a path based on argv[0], containing the location
from
which ethereal was started? At least for Win32 with the large number of
different installation locations it would be very useful and quite easy
to implement.

It would be something like this in plugins.c:

void
init_plugins(const char *plugin_dir)
{
char win_plugin_path[FILENAME_LEN];
char * p_win_plugin_path;
	......
// Add the directory of the program to ethereal after scanning other
dirs
strcpy(win_plugin_path,ethereal_path);
p_win_plugin_path=get_dirname(win_plugin_path);
strcat(p_win_plugin_path,"/plugins");
plugins_scan_dir(p_win_plugin_path);

with
  ethereal_path=argv[0];
in the main files of ethereal and tethereal.

  Gerrit