diff --git a/Cargo.toml b/Cargo.toml index fd75cfb..38735fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "re_set-lib" -version = "5.1.4" +version = "5.1.5" edition = "2021" description = "Data structure library for ReSet" repository = "https://github.com/Xetibo/ReSet-Lib" diff --git a/src/lib.rs b/src/lib.rs index 3f8f6da..ab267c5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,7 +59,8 @@ pub fn create_config(project_name: &str) -> Option { let config_file = config_file.unwrap(); // Hacky flatpak workaround let mut hacked_path = config_file.to_str().unwrap().to_string(); - hacked_path.remove_matches("./var/app"); + hacked_path.remove_matches("var/app/org.Xetibo.ReSet/config/ReSet.toml"); + hacked_path.push_str("config/reset/ReSet.toml"); Some(PathBuf::from(hacked_path)) }