Skip to content

Commit

Permalink
[fix] keymaps not sent to swhks socket (#257)
Browse files Browse the repository at this point in the history
The commit 5e8ebe3 introduced a regression where keymaps were not sent
to swhks because of an invalid path.

Signed-off-by: innocentzero <[email protected]>
  • Loading branch information
InnocentZero authored Mar 29, 2024
1 parent b0fe88c commit f8519a5
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/user/{}", pkexec_id))
}
_ => {
eprintln!("Failed to get XDG_RUNTIME_DIR: {:?}", e);
Expand Down

0 comments on commit f8519a5

Please sign in to comment.