diff --git a/wireshark-mime-package.xml b/wireshark-mime-package.xml index 01f1c78f99..7493bddd70 100644 --- a/wireshark-mime-package.xml +++ b/wireshark-mime-package.xml @@ -1,5 +1,32 @@ + + Packet Capture (PCAP) diff --git a/wiretap/file_access.c b/wiretap/file_access.c index ac383ccc16..61653fc311 100644 --- a/wiretap/file_access.c +++ b/wiretap/file_access.c @@ -307,6 +307,17 @@ wtap_get_all_file_extensions_list(void) * type to interpret it as, if the file name has no extension, the * extension isn't sufficient to determine the appropriate file type, * or the extension is wrong. + * + * NOTE: when adding file formats to this list you may also want to add them + * to the following files so that the various desktop environments will + * know that Wireshark can open the file: + * 1) wireshark-mime-package.xml (for freedesktop.org environments) + * 2) packaging/macosx/Info.plist.in (for OS X) + * 3) packaging/nsis/AdditionalTasksPage.ini and packaging/nsis/common.nsh + * (for Windows) + * + * If your file format has an expected extension (e.g., ".pcap") then you + * should probably also add it to file_type_extensions_base[] (in this file). */ static struct open_info open_info_base[] = { { "Wireshark/tcpdump/... - pcap", OPEN_INFO_MAGIC, libpcap_open, "pcap", NULL, NULL },