aports/community/mcfly/use-xdg-dir.patch
2021-06-29 20:08:27 +02:00

19 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 {