From 91a8febd79c78792501b1a4b1a2159f4de508b07 Mon Sep 17 00:00:00 2001 From: innocentzero Date: Fri, 29 Mar 2024 07:39:56 +0530 Subject: [PATCH] [fix] Fix keymaps not sent to server This fixes a regression created in 5e8ebe3 that caused keybinds to not be sent to the server because of wrong socket path. Signed-off-by: innocentzero --- swhkd/src/environ.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swhkd/src/environ.rs b/swhkd/src/environ.rs index 1cb1bae..4b3a2ea 100644 --- a/swhkd/src/environ.rs +++ b/swhkd/src/environ.rs @@ -93,8 +93,8 @@ impl Env { Ok(val) => PathBuf::from(val), Err(e) => match e { EnvError::XdgRuntimeNotFound => { - log::warn!("XDG_RUNTIME_DIR not found, using hardcoded /run/swhkd"); - PathBuf::from("/run/swhkd") + log::warn!("XDG_RUNTIME_DIR not found, using hardcoded /run/user"); + PathBuf::from(format!("/run/swhkd/{}", pkexec_id)) } _ => { eprintln!("Failed to get XDG_RUNTIME_DIR: {:?}", e);