1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 04:03:29 +00:00
This commit is contained in:
Bernd Schoolmann
2025-10-16 11:53:13 +02:00
parent 4c0e7a464e
commit e652b5d57f
3 changed files with 6 additions and 8 deletions

View File

@@ -1062,7 +1062,7 @@ pub mod sshagent_v2 {
bindgen_prelude::Promise,
threadsafe_function::{ErrorStrategy::CalleeHandled, ThreadsafeFunction},
};
use ssh_agent::agent::ui_requester;
use ssh_agent::agent::{ui_requester, PlatformListener};
use ssh_agent::{
self,
agent::{ui_requester::UiRequestMessage, BitwardenDesktopAgent},
@@ -1195,13 +1195,9 @@ pub mod sshagent_v2 {
let agent = BitwardenDesktopAgent::new(ui_requester);
let agent_copy = agent.clone();
tokio::spawn(async move {
UnixListenerStream::listen("/home/quexten/.ssh-sock".to_string(), agent_copy)
.await
.unwrap();
});
PlatformListener::spawn_listeners(agent_copy);
Ok(SshAgentState { agent: agent })
Ok(SshAgentState { agent })
}
#[napi]

View File

@@ -1,3 +1,5 @@
pub mod agent;
pub mod ui_requester;
pub use agent::BitwardenDesktopAgent;
mod platform;
pub use platform::PlatformListener;

View File

@@ -3,7 +3,7 @@ use homedir::my_home;
use crate::{agent::{self, BitwardenDesktopAgent}, transport::unix_listener_stream::UnixListenerStream};
struct PlatformListener {
pub struct PlatformListener {
}
impl PlatformListener {