Skip to content

Allow opening PCAP files with Sniffnet from the OS - #1296

Open
m-altaifi wants to merge 1 commit into
GyulyVGC:mainfrom
m-altaifi:feat/pcap-file-association
Open

Allow opening PCAP files with Sniffnet from the OS#1296
m-altaifi wants to merge 1 commit into
GyulyVGC:mainfrom
m-altaifi:feat/pcap-file-association

Conversation

@m-altaifi

Copy link
Copy Markdown

Summary

  • adds a positional PCAP file argument for file-open launches
  • registers PCAP file associations in Linux, macOS, and Windows packaging
  • forwards macOS file-open arguments through the privilege wrapper
  • keeps adapter startup explicit by making PCAP_FILE conflict with --adapter

Testing

  • cargo fmt --check
  • cargo check
  • git diff --check
  • parsed resources/packaging/macos/Info.plist as XML
  • parsed resources/packaging/windows/setup.wxs as XML
  • cargo test cli::tests - blocked locally by missing wpcap.lib
  • verified opening a .pcap file from the OS launches Sniffnet
  • verified regular in-app PCAP import still works

Fixes #1288

@GyulyVGC GyulyVGC added the enhancement New feature, request, or improvement label Aug 31, 2026
@GyulyVGC

Copy link
Copy Markdown
Owner

Thanks!
I'll look into this when I have some time.

@GyulyVGC GyulyVGC added the packaging Application packaging label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, request, or improvement packaging Application packaging

2 participants