From 376eef4ba892a5428cc46f3be4b7640a50a44e9d Mon Sep 17 00:00:00 2001 From: Giuliano Bellini s294739 Date: Wed, 23 Nov 2022 09:31:29 +0100 Subject: [PATCH] substituted command with on Linux systems --- src/gui/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/app.rs b/src/gui/app.rs index 0a355dc6..02880ee7 100644 --- a/src/gui/app.rs +++ b/src/gui/app.rs @@ -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();