Skip to content

Commit

Permalink
fix gresource loading path (#31)
Browse files Browse the repository at this point in the history
Fix gresource loading path
  • Loading branch information
gr211 authored Jun 25, 2020
1 parent 7bfcbb6 commit 1d9dd73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ fn main() {
let resource = {
match gio::Resource::load(format!("data/{}.gresource", NAMESPACE)) {
Ok(resource) => resource,
Err(_) => gio::Resource::load(format!("data/{}.gresource", NAMESPACE)).unwrap(),
Err(_) => {
gio::Resource::load(format!("/usr/share/{}/{}.gresource", NAMESPACE, NAMESPACE))
.unwrap()
}
}
};

Expand Down

0 comments on commit 1d9dd73

Please sign in to comment.