mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Use runtime
dir when defaulting to executable location
This commit is contained in:
parent
4a40e935de
commit
4b6aff8c66
@ -68,7 +68,7 @@ fn runtime_dir() -> std::path::PathBuf {
|
||||
// fallback to location of the executable being run
|
||||
std::env::current_exe()
|
||||
.ok()
|
||||
.and_then(|path| path.parent().map(|path| path.to_path_buf()))
|
||||
.and_then(|path| path.parent().map(|path| path.to_path_buf().join(RT_DIR)))
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user