hotfix(server): Maintain working directory while daemonization
This commit is contained in:
parent
51f1b53fe2
commit
84911619b2
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ impl Drop for SessionMetaData {
|
|||
pub fn start_server(os_input: Box<dyn ServerOsApi>, socket_path: PathBuf) {
|
||||
#[cfg(not(any(feature = "test", test)))]
|
||||
daemonize::Daemonize::new()
|
||||
.working_directory(std::env::var("HOME").unwrap())
|
||||
.working_directory(std::env::current_dir().unwrap())
|
||||
.umask(0o077)
|
||||
.start()
|
||||
.expect("could not daemonize the server process");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue