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!(req, NetworkManagerRequest::Reload)
|
||||||
&& matches!(state.connectivity, NmConnectivityState::Portal)
|
&& matches!(state.connectivity, NmConnectivityState::Portal)
|
||||||
{
|
{
|
||||||
// spawn browser
|
let mut browser = std::process::Command::new("xdg-open");
|
||||||
if let Err(err) = std::process::Command::new("xdg-open")
|
browser.arg("http://204.pop-os.org/");
|
||||||
.arg("http://pop.system76.com")
|
cosmic::process::spawn(browser);
|
||||||
.spawn()
|
|
||||||
{
|
|
||||||
log::error!("Failed to open browser: {}", err);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.update_nm_state(state);
|
self.update_nm_state(state);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue