20 lines
710 B
Text
20 lines
710 B
Text
|
Index: helix-loader/src/lib.rs
|
||
|
--- helix-loader/src/lib.rs.orig
|
||
|
+++ helix-loader/src/lib.rs
|
||
|
@@ -56,11 +56,15 @@ fn prioritize_runtime_dirs() -> Vec<PathBuf> {
|
||
|
|
||
|
// fallback to location of the executable being run
|
||
|
// canonicalize the path in case the executable is symlinked
|
||
|
+ #[cfg(not(target_os = "openbsd"))]
|
||
|
let exe_rt_dir = std::env::current_exe()
|
||
|
.ok()
|
||
|
.and_then(|path| std::fs::canonicalize(path).ok())
|
||
|
.and_then(|path| path.parent().map(|path| path.to_path_buf().join(RT_DIR)))
|
||
|
.unwrap();
|
||
|
+ #[cfg(target_os = "openbsd")]
|
||
|
+ let exe_rt_dir = std::path::PathBuf::from("%%DATADIR%%").join(RT_DIR);
|
||
|
+
|
||
|
rt_dirs.push(exe_rt_dir);
|
||
|
rt_dirs
|
||
|
}
|