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