Run desktop startup on blocking pool
Some checks failed
Dependency security audit / rustsec (push) Has been cancelled
Some checks failed
Dependency security audit / rustsec (push) Has been cancelled
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -5434,6 +5434,7 @@ dependencies = [
|
||||
"muda",
|
||||
"rfd",
|
||||
"tempfile",
|
||||
"tokio",
|
||||
"url",
|
||||
"zeroize",
|
||||
]
|
||||
|
||||
@@ -30,6 +30,7 @@ path = "src/main.rs"
|
||||
[dependencies]
|
||||
iced.workspace = true
|
||||
ironstorage = { workspace = true, features = ["ssh"] }
|
||||
tokio.workspace = true
|
||||
zeroize.workspace = true
|
||||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
|
||||
@@ -6275,9 +6275,13 @@ fn parse_generation_length(value: &str) -> Result<Option<NonZeroUsize>, String>
|
||||
|
||||
async fn load_authentication()
|
||||
-> Result<(DesktopStorage, NativeAuthenticationSession, KeyInfo), String> {
|
||||
DesktopStorage::system()
|
||||
.map(|bootstrap| bootstrap.into_parts())
|
||||
.map_err(|error| error.to_string())
|
||||
tokio::task::spawn_blocking(|| {
|
||||
DesktopStorage::system()
|
||||
.map(|bootstrap| bootstrap.into_parts())
|
||||
.map_err(|error| error.to_string())
|
||||
})
|
||||
.await
|
||||
.map_err(|error| format!("desktop startup task failed: {error}"))?
|
||||
}
|
||||
|
||||
fn load_document(
|
||||
|
||||
Reference in New Issue
Block a user