wireshark/ui
Guy Harris 037c64aa34 Clean up initialization code for programs.
Make the init_progfile_dir() call unconditionally, even if plugins
aren't supported, as that doesn't necessarily mean nobody uses the
directory containing the executable.

Report the error the same way in all programs, and free the error string
after we're finished with it.

Make the error - and the comment before the code - reflect what
init_progfile_dir() is actually doing (the goal is to get the full
pathname of the directory *containing* the executable; that's generally
done by getting the pathname of the executable and stripping off the
name of the executable, but that's won't necessarily always be the
case).  Also note for TShark that we won't be able to capture traffic,
just as we do for Wireshark (if we don't have the pathname of the
program file, we don't have a pathname to use to find dumpcap).

Have the plugin scanner just fail silently if we weren't able to get the
plugin directory path, so we don't have to worry about calling it if
init_progfile_dir() fails.

Clean up white space while we're at it.

Change-Id: I8e580c719aab6fbf74a764bf6629962394fff7c8
Reviewed-on: https://code.wireshark.org/review/19076
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-12-05 04:27:49 +00:00
..
cli Put tap-exportobject.h into the release tarball. 2016-12-02 18:28:43 +00:00
gtk Clean up initialization code for programs. 2016-12-05 04:27:49 +00:00
qt [Automatic update for 2016-12-04] 2016-12-04 16:13:27 +00:00
win32 Have "All Capture Files" match only capture files. 2016-09-10 06:45:08 +00:00
.editorconfig Add EditorConfig settings for most C files 2016-03-08 10:46:35 +00:00
CMakeLists.txt Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
Makefile.am Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
alert_box.c Make failure_alert_box() be printf-like. 2016-03-27 02:06:28 +00:00
alert_box.h Make failure_alert_box() be printf-like. 2016-03-27 02:06:28 +00:00
all_files_wildcard.h Add a #define for the wildcard pattern that matches all files. 2016-03-01 02:00:25 +00:00
capture.c
capture.h capture(.h): fix api reference 2016-01-26 09:10:25 +00:00
capture_globals.h
capture_ui_utils.c
capture_ui_utils.h Qt: Update selected interface filter behavior. 2016-02-26 17:28:04 +00:00
commandline.c Handle -K, -n, -N, and -u in the common dissection option code. 2016-10-31 05:05:50 +00:00
commandline.h Have routines for parsing options that affect dissection. 2016-10-30 22:57:16 +00:00
console.c More checks for localtime() and gmtime() returning NULL. 2016-10-22 02:27:32 +00:00
console.h
decode_as_utils.c Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
decode_as_utils.h Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
dissect_opts.c Handle -K, -n, -N, and -u in the common dissection option code. 2016-10-31 05:05:50 +00:00
dissect_opts.h Handle -K, -n, -N, and -u in the common dissection option code. 2016-10-31 05:05:50 +00:00
doxygen.cfg.in
export_object_ui.c Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
export_object_ui.h Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
export_pdu_ui_utils.c Allow create_tempfile to support a suffix. 2016-06-01 06:24:05 +00:00
export_pdu_ui_utils.h Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
file_dialog.h Add JSON export to Qt/GTK UI 2016-06-20 01:22:57 +00:00
firewall_rules.c Firewall rule fixups. 2016-06-06 06:27:47 +00:00
firewall_rules.h Qt: Firewall Rules dialog. 2016-06-01 23:37:25 +00:00
help_url.c Qt: Make "Learn" on the welcome screen clickable. 2016-10-22 06:32:50 +00:00
help_url.h Qt: Make "Learn" on the welcome screen clickable. 2016-10-22 06:32:50 +00:00
iface_lists.c *_stdup_printf -> strdup for "single string only" formatting. 2016-06-06 06:03:58 +00:00
iface_lists.h
io_graph_item.c
io_graph_item.h Place variable declarations where they're used. 2016-09-07 01:43:22 +00:00
language.c Use "system" for "use system language", and don't try to print a null string. 2016-04-28 19:34:02 +00:00
language.h Use "system" for "use system language", and don't try to print a null string. 2016-04-28 19:34:02 +00:00
last_open_dir.h
main_statusbar.h
mcast_stream.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
mcast_stream.h
packet_list_utils.c Qt: Support "Resolve Names" with multiple custom column fields 2016-08-27 11:15:34 +00:00
packet_list_utils.h
persfilepath_opt.c
persfilepath_opt.h
preference_utils.c Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
preference_utils.h Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
profile.c profile_name_is_valid() returns a malloced string [-Wcast-qual] 2016-01-21 02:32:46 +00:00
profile.h profile_name_is_valid() returns a malloced string [-Wcast-qual] 2016-01-21 02:32:46 +00:00
progress_dlg.h const gpointer -> gconstpointer 2016-02-16 05:10:49 +00:00
proto_hier_stats.c Walk up the tree view of Protocol Hierarchy Statistics to look for protocol matches. 2016-03-12 03:05:07 +00:00
proto_hier_stats.h
recent.c Fix two warnings when compiling with rpcap support on macOS. 2016-10-30 08:44:25 +00:00
recent.h Use separate main geometry settings for Qt and GTK+. 2016-06-08 03:41:32 +00:00
recent_utils.h
rtp_media.c
rtp_media.h Qt: fix jitter buffer management 2016-02-10 20:26:21 +00:00
rtp_stream.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
rtp_stream.h RTP player: increase the maximum number of silence frames to 30 minutes worth. 2016-06-23 03:30:39 +00:00
service_response_time.c
service_response_time.h
simple_dialog.h simple_dialog(.h): fix parameter 'Type' not found in the function declaration [-Wdocumentation] 2016-12-02 11:30:23 +00:00
software_update.c
software_update.h
ssl_key_export.c
ssl_key_export.h
tap-iax2-analysis.c Add the packet number to the packet_info structure, and use it. 2016-01-24 03:41:28 +00:00
tap-iax2-analysis.h
tap-rlc-graph.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-rlc-graph.h Always supply a g_mallocated error message from select_rlc_lte_session(). 2015-12-29 08:01:54 +00:00
tap-rtp-analysis.h
tap-rtp-common.c Move the proto data stuff out of frame_data.[ch]. 2016-01-25 02:24:34 +00:00
tap-rtp-common.h
tap-sctp-analysis.c SCTP: find right assoc id 2016-10-25 16:24:51 +00:00
tap-sctp-analysis.h SCTP: find right assoc id 2016-10-25 16:24:51 +00:00
tap-sequence-analysis.c Qt: Only color sequence analysis items having color filter 2016-10-02 17:55:40 +00:00
tap-sequence-analysis.h Qt: Only color sequence analysis items having color filter 2016-10-02 17:55:40 +00:00
tap-tcp-stream.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
tap-tcp-stream.h Qt: add initializers (CID 1162824). 2016-07-06 06:48:10 +00:00
tap_export_pdu.c Ensure to have a valid string pointer when writing OS SHB option 2016-07-26 13:48:40 +00:00
tap_export_pdu.h Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
text_import.c More checks for localtime() and gmtime() returning NULL. 2016-10-22 02:27:32 +00:00
text_import.h Make the Flex scanners and YACC parser in libraries reentrant. 2016-04-03 22:21:29 +00:00
text_import_scanner.h
text_import_scanner.l Include config.h at the very beginning of all Flex scanners. 2016-12-02 21:02:10 +00:00
time_shift.c Avoid unnecessary replacement source file floorl.c 2016-04-04 23:58:31 +00:00
time_shift.h
traffic_table_ui.c Qt: Conversation time column updates. 2016-09-02 23:53:37 +00:00
traffic_table_ui.h Qt: Conversation time column updates. 2016-09-02 23:53:37 +00:00
ui_util.h No need for toolkit-dependent color initialization. 2016-01-01 04:15:29 +00:00
util.c Replace and remove host_ip_af() function 2016-04-08 20:49:22 +00:00
util.h
voip_calls.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
voip_calls.h