Skip to content

Commit

Permalink
fix(cli): not working
Browse files Browse the repository at this point in the history
  • Loading branch information
eythaann committed Jan 23, 2025
1 parent bce71d8 commit 93aeae4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/background/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pub fn is_local_dev() -> bool {
}

fn register_panic_hook() {
let base_hook = std::panic::take_hook();
std::panic::set_hook(Box::new(move |info| {
let cause = info
.payload()
Expand Down Expand Up @@ -87,6 +88,7 @@ fn register_panic_hook() {
cause,
string_location
);
base_hook(info);
}));
}

Expand Down
6 changes: 3 additions & 3 deletions src/background/modules/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ use crate::{
log_error,
seelen::Seelen,
trace_lock,
utils::{constants::SEELEN_COMMON, pwsh::PwshScript, spawn_named_thread},
utils::{pwsh::PwshScript, spawn_named_thread},
windows_api::Com,
};

pub struct AppClient;
impl AppClient {
fn socket_path() -> PathBuf {
let dir = SEELEN_COMMON.app_temp_dir();
let dir = std::env::temp_dir().join("com.seelen.seelen-ui");
if !dir.exists() {
fs::create_dir_all(dir).unwrap();
fs::create_dir_all(&dir).unwrap();
}
dir.join("slu_tcp_socket")
}
Expand Down

0 comments on commit 93aeae4

Please sign in to comment.