1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/community/mcfly/use-xdg-dir.patch
2021-06-29 20:08:27 +02:00

18 lines
593 B
Diff

Store files in ~/.local/share/mcfly/ instead of ~/.mcfly/ to avoid polluting
HOME directory.
Upstream-Issue: https://github.com/cantino/mcfly/pull/124
--- a/src/settings.rs
+++ b/src/settings.rs
@@ -448,7 +448,9 @@
pub fn storage_dir_path() -> PathBuf {
home_dir()
.unwrap_or_else(|| panic!("McFly error: Unable to access home directory"))
- .join(PathBuf::from(".mcfly"))
+ .join(PathBuf::from(".local"))
+ .join(PathBuf::from("share"))
+ .join(PathBuf::from("mcfly"))
}
pub fn mcfly_db_path() -> PathBuf {