We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f9f78b commit ba0f30fCopy full SHA for ba0f30f
client/src/file/mod.rs
@@ -88,6 +88,18 @@ impl Keyring {
88
Self::load(api::Keyring::default_path()?, secret).await
89
}
90
91
+ /// Load from default keyring file
92
+ ///
93
+ /// # Safety
94
95
+ /// The secret validation is skipped.
96
+ pub async unsafe fn load_default_unchecked() -> Result<Self, Error> {
97
+ #[cfg(feature = "tracing")]
98
+ tracing::debug!("Loading default keyring file");
99
+ let secret = Secret::from(ashpd::desktop::secret::retrieve().await?);
100
+ unsafe { Self::load_unchecked(api::Keyring::default_path()?, secret).await }
101
+ }
102
+
103
/// Load from a keyring file.
104
///
105
/// # Arguments
0 commit comments