forked from pool/helix
ccd03c5568
- Changed runtime path to /usr/libexec/helix as it includes loadable shared objects * Added helix-runtime-path.patch - Some spec file cleanup OBS-URL: https://build.opensuse.org/request/show/1069572 OBS-URL: https://build.opensuse.org/package/show/editors/helix?expand=0&rev=53
17 lines
647 B
Diff
17 lines
647 B
Diff
Index: helix-22.12/helix-loader/src/lib.rs
|
|
===================================================================
|
|
--- helix-22.12.orig/helix-loader/src/lib.rs 2023-03-06 10:51:51.196485557 +0100
|
|
+++ helix-22.12/helix-loader/src/lib.rs 2023-03-06 10:52:38.460917379 +0100
|
|
@@ -41,6 +41,11 @@ pub fn runtime_dir() -> PathBuf {
|
|
return conf_dir;
|
|
}
|
|
|
|
+ let rt_dir = std::path::PathBuf::from("@HELIX_RUNTIME_DIR@").join(RT_DIR);
|
|
+ if rt_dir.exists() {
|
|
+ return rt_dir;
|
|
+ }
|
|
+
|
|
// fallback to location of the executable being run
|
|
// canonicalize the path in case the executable is symlinked
|
|
std::env::current_exe()
|