Skip to content

Commit

Permalink
fixed problems when running on NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Jun 17, 2023
1 parent 188a2ad commit f47bfaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/types/sniffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ impl Sniffer {
.arg(report_path)
.spawn()
.unwrap();
#[cfg(target_os = "linux")]
#[cfg(all(not(target_os = "windows"), not(target_os = "macos")))]
std::process::Command::new("xdg-open")
.arg(report_path)
.spawn()
Expand All @@ -298,7 +298,7 @@ impl Sniffer {
.unwrap();
#[cfg(target_os = "macos")]
std::process::Command::new("open").arg(url).spawn().unwrap();
#[cfg(target_os = "linux")]
#[cfg(all(not(target_os = "windows"), not(target_os = "macos")))]
std::process::Command::new("xdg-open")
.arg(url)
.spawn()
Expand Down

0 comments on commit f47bfaa

Please sign in to comment.