Some systems do not have webbrowser or have strange browser.
Do not try to use it and dislayed URL for user information.
Change-Id: I3f5bcca6701b20cafa942629cbee78aa1fc689b1
Reviewed-on: https://code.wireshark.org/review/516
Reviewed-by: Evan Huus <eapache@gmail.com>
prefs.gui_update_enabled = TRUE;
prefs.gui_update_channel = UPDATE_CHANNEL_STABLE;
prefs.gui_update_interval = 60*60*24; /* Seconds */
+#ifdef HTML_VIEWER
prefs.gui_webbrowser = (char *) HTML_VIEWER " %s";
+#else
+ prefs.gui_webbrowser = (char *) "";
+#endif
prefs.gui_window_title = (char *) "";
prefs.gui_start_title = "The World's Most Popular Network Protocol Analyzer";
prefs.gui_version_placement = version_both;
{
simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK,
"Web browser not specified.\n"
- "Please correct the web browser setting in the Preferences dialog.");
+ "Please correct the web browser setting in the Preferences dialog.\n"
+ "URL: %s", url);
g_free (browser);
return FALSE;
}
{
simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK,
"Web browser not specified.\n"
- "Please correct the web browser setting in the Preferences dialog.");
+ "Please correct the web browser setting in the Preferences dialog.\n"
+ "URL: %s", path);
g_free (browser);
return FALSE;
}