fix macos wanting to ask for password on startup by making app id match
Some checks are pending
Rust CI / build-and-test (macOS-latest) (push) Waiting to run
Rust CI / build-and-test (ubuntu-latest) (push) Waiting to run
Rust CI / build-and-test (windows-latest) (push) Waiting to run
Rust CI / cross-compile (macOS-latest, x86_64-pc-windows-gnu) (push) Waiting to run
Rust CI / cross-compile (macOS-latest, x86_64-unknown-linux-gnu) (push) Waiting to run
Rust CI / cross-compile (ubuntu-latest, x86_64-pc-windows-gnu) (push) Waiting to run
Some checks are pending
Rust CI / build-and-test (macOS-latest) (push) Waiting to run
Rust CI / build-and-test (ubuntu-latest) (push) Waiting to run
Rust CI / build-and-test (windows-latest) (push) Waiting to run
Rust CI / cross-compile (macOS-latest, x86_64-pc-windows-gnu) (push) Waiting to run
Rust CI / cross-compile (macOS-latest, x86_64-unknown-linux-gnu) (push) Waiting to run
Rust CI / cross-compile (ubuntu-latest, x86_64-pc-windows-gnu) (push) Waiting to run
This commit is contained in:
parent
4df83c9bc2
commit
337313b0bb
3 changed files with 9 additions and 8 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -2049,7 +2049,7 @@ dependencies = [
|
|||
]
|
||||
|
||||
[[package]]
|
||||
name = "hoot-app"
|
||||
name = "hoot"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "hoot-app"
|
||||
name = "hoot"
|
||||
version = "0.1.0"
|
||||
authors = ["Jack Chakany <jack@chakany.systems>"]
|
||||
edition = "2021"
|
||||
|
|
|
@ -9,10 +9,7 @@ use linux::LinuxKeyStorage;
|
|||
use macos::MacOSKeyStorage;
|
||||
|
||||
// for macos keychain service name
|
||||
#[cfg(debug_assertions)]
|
||||
const SERVICE_NAME: &'static str = "com.chakanysystems.hoot-dev";
|
||||
#[cfg(not(debug_assertions))]
|
||||
const SERVICE_NAME: &'static str = "com.chakanysystems.hoot";
|
||||
const SERVICE_NAME: &'static str = "hoot";
|
||||
|
||||
pub enum Error {
|
||||
IOError(std::io::Error),
|
||||
|
@ -37,7 +34,9 @@ impl std::fmt::Debug for Error {
|
|||
Error::Addition(key) => write!(f, "Could not add key {}", key),
|
||||
Error::Removal(key) => write!(f, "Could not remove key {}", key),
|
||||
Error::KeyNotFound => write!(f, "Could not find key in keystore"),
|
||||
Error::UnwrappingFailed(err) => write!(f, "Couldn't unwrap gift wrapped event: {}", err)
|
||||
Error::UnwrappingFailed(err) => {
|
||||
write!(f, "Couldn't unwrap gift wrapped event: {}", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -49,7 +48,9 @@ impl std::fmt::Display for Error {
|
|||
Error::Addition(key) => write!(f, "Could not add key {}", key),
|
||||
Error::Removal(key) => write!(f, "Could not remove key {}", key),
|
||||
Error::KeyNotFound => write!(f, "Could not find key in keystore"),
|
||||
Error::UnwrappingFailed(err) => write!(f, "Couldn't unwrap gift wrapped event: {}", err)
|
||||
Error::UnwrappingFailed(err) => {
|
||||
write!(f, "Couldn't unwrap gift wrapped event: {}", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue