Skip to content

Commit f8519a5

Browse files
authored
[fix] keymaps not sent to swhks socket (#257)
The commit 5e8ebe3 introduced a regression where keymaps were not sent to swhks because of an invalid path. Signed-off-by: innocentzero <isfarulhaque@proton.me>
1 parent b0fe88c commit f8519a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swhkd/src/environ.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ impl Env {
9393
Ok(val) => PathBuf::from(val),
9494
Err(e) => match e {
9595
EnvError::XdgRuntimeNotFound => {
96-
log::warn!("XDG_RUNTIME_DIR not found, using hardcoded /run/swhkd");
97-
PathBuf::from("/run/swhkd")
96+
log::warn!("XDG_RUNTIME_DIR not found, using hardcoded /run/user");
97+
PathBuf::from(format!("/run/user/{}", pkexec_id))
9898
}
9999
_ => {
100100
eprintln!("Failed to get XDG_RUNTIME_DIR: {:?}", e);

0 commit comments

Comments
 (0)