Skip to content

Commit

Permalink
[fix] Fix keymaps not sent to server
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
InnocentZero committed Mar 29, 2024
1 parent e7bb4c3 commit 91a8feb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swhkd/src/environ.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 91a8feb

Please sign in to comment.