Adjust keychain config for dev

This commit is contained in:
Gregory Schier
2025-04-15 07:28:01 -07:00
parent 2e55a1bd6d
commit 6566857d54
2 changed files with 7 additions and 4 deletions

View File

@@ -15,8 +15,9 @@ pub(crate) struct MasterKey {
}
impl MasterKey {
pub(crate) fn get_or_create(user: &str) -> Result<Self> {
let entry = Entry::new("app.yaak.desktop.EncryptionKey", user)?;
pub(crate) fn get_or_create(app_id: &str, user: &str) -> Result<Self> {
let id = format!("{app_id}.EncryptionKey");
let entry = Entry::new(&id, user)?;
let key = match entry.get_password() {
Ok(encoded) => {