fix daemon working directory resolving to wrong path
This commit is contained in:
+2
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user