initial working implementation of ssh agent

This commit is contained in:
2024-07-03 06:33:58 -04:00
parent 6711ce2c43
commit 0124f77f7b
15 changed files with 318 additions and 445 deletions

View File

@ -25,7 +25,7 @@ use crate::{
config::{self, AppConfig},
credentials::AppSession,
ipc,
server::Server,
server::{Server, Agent},
errors::*,
shortcuts,
state::AppState,
@ -110,6 +110,7 @@ async fn setup(app: &mut App) -> Result<(), Box<dyn Error>> {
let app_session = AppSession::load(&pool).await?;
Server::start(app.handle().clone())?;
Agent::start(app.handle().clone())?;
config::set_auto_launch(conf.start_on_login)?;
if let Err(_e) = config::set_auto_launch(conf.start_on_login) {