fix daemon working directory resolving to wrong path

This commit is contained in:
2025-09-28 18:23:35 +03:00
parent 0c492f40eb
commit 78650b1100
+2 -1
View File
@@ -30,8 +30,9 @@ fn main() {
path
});
let current_exe_path = env::current_exe().unwrap().canonicalize().unwrap();
Daemonize::new()
.working_directory(env::current_dir().unwrap())
.working_directory(current_exe_path.parent().unwrap())
.start()
.unwrap();