Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 20445: /trunk/gtk/ /trunk/gtk/: help
From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Tue, 16 Jan 2007 04:32:50 +0100
Luis Ontanon wrote:
using file:///usr/local/share/wireshark/wsug/%s could be little less
painful than the "internet way". Specially if the box is not wired to
the wild.

Yes, and I would appreciate it.

It would have another advantage: Lower the actual traffic to the wireshark.org server. The disadvantage is that the binary distribution packages will become slightly larger - but there's always a price to pay.

Two task to add this:
1. the "distributive" script(s) must copy the user's guide to the right place, e.g.: file:///usr/local/share/wireshark/wsug/ or such
2. the help system must be enabled to look at this local file

1.)
The task to do is to get the docs at the right place for various UNIX platforms with both the source and binary "distribution" ways. I don't have real knowledge how to do this ...

2.)
Looking for a local file first could be easily added to gtk/help.dlg.c function help_topic_html(), e.g. based on #ifdef _WIN32 - should be straightforward to understand what to do - I can help with this if any questions arise.

It could even be done for only a few platforms by simply adding a check if a local file (e.g. /usr/local/share/wireshark/wsug/html_chunked/index.html or alike) is actually existing. I guess the actual place in the filesystem to look for should be based on config settings - but the UNIX guys will know that much better than me ;-)

So UNIX based systems could do it much like the current Win32 method:
- first check if a local file exists in /usr/local/... and use it that way - as Frankie once said: "I did it my way" ;-))) - if that fails as no local help exists, do the "internet way" (as already implemented)

So if anyone could have a look at this - it would be welcome ...

Regards, ULFL