substituted command with on Linux systems

This commit is contained in:
Giuliano Bellini s294739 2022-11-23 09:31:29 +01:00
parent 9637cf8859
commit 376eef4ba8

View file

@ -96,7 +96,7 @@ impl Application for Sniffer {
.spawn()
.unwrap();
#[cfg(target_os = "linux")]
std::process::Command::new("open")
std::process::Command::new("xdg-open")
.arg("./sniffnet_report/report.txt")
.spawn()
.unwrap();
@ -113,7 +113,7 @@ impl Application for Sniffer {
.spawn()
.unwrap();
#[cfg(target_os = "linux")]
std::process::Command::new("open")
std::process::Command::new("xdg-open")
.arg("https://github.com/GyulyVGC/sniffnet")
.spawn()
.unwrap();