Skip to content

Commit

Permalink
verify that runtime_dir() actually exists
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Jan 2, 2025
1 parent 3dda02f commit f21ed16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zellij-utils/src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ mod unix_only {
|_| {
ZELLIJ_PROJ_DIR
.runtime_dir()
.filter(|p| p.try_exists().ok() == Some(true))
.map_or_else(|| ZELLIJ_TMP_DIR.clone(), |p| p.to_owned())
},
PathBuf::from,
Expand Down

0 comments on commit f21ed16

Please sign in to comment.