diff --git a/zellij-server/src/lib.rs b/zellij-server/src/lib.rs index 606bf1b0..7e883ddc 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, 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");