From d22a593237ded592e92d788b53da2cb7f6d133a1 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Fri, 2 Feb 2024 11:56:33 -0500 Subject: [PATCH] fix: use the correct url and use cosmic spawn --- cosmic-applet-network/src/app.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/cosmic-applet-network/src/app.rs b/cosmic-applet-network/src/app.rs index 369164e3..04842a35 100644 --- a/cosmic-applet-network/src/app.rs +++ b/cosmic-applet-network/src/app.rs @@ -313,13 +313,9 @@ impl cosmic::Application for CosmicNetworkApplet { && !matches!(req, NetworkManagerRequest::Reload) && matches!(state.connectivity, NmConnectivityState::Portal) { - // spawn browser - if let Err(err) = std::process::Command::new("xdg-open") - .arg("http://pop.system76.com") - .spawn() - { - log::error!("Failed to open browser: {}", err); - } + let mut browser = std::process::Command::new("xdg-open"); + browser.arg("http://204.pop-os.org/"); + cosmic::process::spawn(browser); } self.update_nm_state(state);