I'm learning Rust and trying to connect to wifi networks through the code. But, when I try to connect to a network with an incorrect password, I receive the default GNOME connect pop-up, like if I'm trying to connect manually. How can I disable this pop-up? I'm using wifi-rs 0.2.2 and the example code to connect. I use Pop!_OS 22.04 with GNOME 42.5.
here's the code:
match wifi.connect(&ssid, &password) {
Ok(result) => println!(
"{}",
if result == true {
"Connection Successful."
} else {
"Invalid password."
}
),
Err(err) => println!("The following error occurred: {:?}", err),
}