shell: update fish-on-tmpfs.patch

Fish switched to rust on 4.0, so this patch needed to be updated to
match that.
This commit is contained in:
Charlie Root 2025-03-07 09:53:41 +01:00
commit b59c352f73
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E

View file

@ -1,10 +1,10 @@
--- a/src/path.cpp --- a/src/path.rs
+++ b/src/path.cpp +++ b/src/path.rs
@@ -384,7 +384,7 @@ static const base_directory_t &get_data_directory() { @@ -781,7 +781,7 @@ fn get_cache_directory() -> &'static BaseDirectory {
}
static const base_directory_t &get_config_directory() { fn get_config_directory() -> &'static BaseDirectory {
- static base_directory_t s_dir = make_base_directory(L"XDG_CONFIG_HOME", L"/.config/fish"); static DIR: Lazy<BaseDirectory> =
+ static base_directory_t s_dir = make_base_directory(L"XDG_RUNTIME_DIR", L"/.config/fish"); - Lazy::new(|| make_base_directory(L!("XDG_CONFIG_HOME"), L!("/.config/fish")));
return s_dir; + Lazy::new(|| make_base_directory(L!("XDG_RUNTIME_DIR"), L!("/.config/fish")));
&DIR
} }