fix: use the correct url and use cosmic spawn
This commit is contained in:
parent
e6ec592cb0
commit
19eb20b4ff
1 changed files with 3 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue