Skip to content

Commit

Permalink
debug: spawning a child process with binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
YassinEldeeb committed Apr 3, 2022
1 parent f2edfbc commit 3f4552c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions gui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ fn save_inputs(conf: &DeadlinerConf) -> Result<(), String> {

// !Here we setup a schedule to update the wallpaper
let schedular_exec = format!("deadliner-schedular{}", &get_current_file_ext());
println!("{:?}", new_path(&schedular_exec).to_str().unwrap());
unwrap_or_return!(
Command::new(new_path(&schedular_exec))
.arg("skip-update-on-launch")
Expand Down
2 changes: 2 additions & 0 deletions schedular/src/system_tray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ pub fn bg_system_tray(exit: Arc<Mutex<bool>>) {
} else {
let gui_exec = format!("deadliner{}", &get_current_file_ext());

println!("{:?}", new_path(&gui_exec).to_str().unwrap());

let child_process = Command::new(new_path(&gui_exec)).spawn().unwrap();

*gui_handler = Some(child_process);
Expand Down

1 comment on commit 3f4552c

@vercel
Copy link

@vercel vercel bot commented on 3f4552c Apr 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.