mirror of https://github.com/lapce/lapce.git
Don't unwrap the option
This commit is contained in:
parent
9565dc148e
commit
0c0a37ab1c
|
@ -387,11 +387,10 @@ fn flatpak_should_use_host_terminal() -> bool {
|
|||
}
|
||||
|
||||
// Ensure flatpak-spawn --host can execute a basic command
|
||||
let host_available = Command::new("flatpak-spawn")
|
||||
Command::new("flatpak-spawn")
|
||||
.arg("--host")
|
||||
.arg("true")
|
||||
.status()
|
||||
.unwrap();
|
||||
|
||||
host_available.success()
|
||||
.map(|status| status.success())
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue