opnsense-ports/editors/helix/files/patch-helix-loader_src_lib.rs
Franco Fichtner be89a81ed8 */*: sync with upstream
Taken from: FreeBSD
2022-04-04 16:09:52 +02:00

11 lines
404 B
Rust

--- helix-loader/src/lib.rs.orig 2022-03-30 18:53:07 UTC
+++ helix-loader/src/lib.rs
@@ -21,6 +21,8 @@ pub fn runtime_dir() -> std::path::PathBuf {
return std::path::PathBuf::from(dir).parent().unwrap().join(RT_DIR);
}
+ return std::path::PathBuf::from("%%DATADIR%%").join(RT_DIR);
+
// fallback to location of the executable being run
std::env::current_exe()
.ok()