diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-17 15:53:21 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-17 15:53:21 +0530 |
commit | 84911619b27fec7aa5d13f4d60db2e8625dc3a04 (patch) | |
tree | 6104d323ce66b8fe4e3d558080a0aaf868702a68 | |
parent | 51f1b53fe280ff0637fe511167223f2b6dc2c08f (diff) |
hotfix(server): Maintain working directory while daemonization
-rw-r--r-- | zellij-server/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zellij-server/src/lib.rs b/zellij-server/src/lib.rs index 606bf1b0d..7e883ddc7 100644 --- a/zellij-server/src/lib.rs +++ b/zellij-server/src/lib.rs @@ -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"); |