Skip to content

Commit

Permalink
flatpak: Add funny directory workaround round 2
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Jun 1, 2024
1 parent 842a1fa commit c897aee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ pub fn create_config(project_name: &str) -> Option<PathBuf> {
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))
}

Expand Down

0 comments on commit c897aee

Please sign in to comment.