summaryrefslogtreecommitdiff
path: root/gtk/help_dlg.c
diff options
context:
space:
mode:
authorBalint Reczey <balint.reczey@ericsson.com>2010-08-01 10:45:42 +0000
committerBalint Reczey <balint.reczey@ericsson.com>2010-08-01 10:45:42 +0000
commita89c52939f265909c82e4ba14bf55f4529564cb8 (patch)
treed005452f072def279fb6d400af0fabae1954da9e /gtk/help_dlg.c
parented7871ca54a08c7b173d4825bae5d2afb10cf868 (diff)
downloadwireshark-a89c52939f265909c82e4ba14bf55f4529564cb8.tar.gz
Use local copy of Wireshark documentation on UNIX if it's available.
Installation has to be done manually to the location specified by --docdir configure option. svn path=/trunk/; revision=33683
Diffstat (limited to 'gtk/help_dlg.c')
-rw-r--r--gtk/help_dlg.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/help_dlg.c b/gtk/help_dlg.c
index e703442724..4b8220e79a 100644
--- a/gtk/help_dlg.c
+++ b/gtk/help_dlg.c
@@ -107,8 +107,13 @@ void help_topic_html(const gchar *topic) {
url = g_string_new("");
- /* try to open the HTML page from wireshark.org instead */
- g_string_append_printf(url, "http://www.wireshark.org/docs/wsug_html_chunked/%s", topic);
+ if (g_file_test(DOC_DIR "/wsug_html_chunked", G_FILE_TEST_IS_DIR)) {
+ /* try to open the HTML page from wireshark.org instead */
+ g_string_append_printf(url, "file://" DOC_DIR "/wsug_html_chunked/%s", topic);
+ } else {
+ /* try to open the HTML page from wireshark.org instead */
+ g_string_append_printf(url, "http://www.wireshark.org/docs/wsug_html_chunked/%s", topic);
+ }
browser_open_url(url->str);