Skip to content

Commit

Permalink
fix: use the correct url and use cosmic spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Feb 2, 2024
1 parent 0ba98df commit d22a593
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cosmic-applet-network/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d22a593

Please sign in to comment.