Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiles but doesn't run on musl linux 'g-file-error-quark' '/app/share/com.gigitux.youp/com.gigitux.youp.gresource' #64

Open
Rabioli opened this issue Feb 26, 2022 · 1 comment

Comments

@Rabioli
Copy link

Rabioli commented Feb 26, 2022

It was quite hard to get it to even compile since no deps are listed anywhere. Once it did and I try to run the binary, I get the following error:

$ ./youp                                  
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { domain: g-file-error-quark, code: 4, message: "Failed to open file “/app/share/com.gigitux.youp/com.gigitux.youp.gresource”: open() failed: No such file or directory" }', src/main.rs:20:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Reading the error I guess it is failing because it is hardcoded to work with flatpak because that's a flatpak path, is this a correct assumption?

I have to mention that rust have good support for linux musl, I have other programs self compiled or using the package manager written in rust that work just fine.

Info on the compiled binary:

$ youp                                        
youp: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, BuildID[sha1]=bef6b11abcb04cc76df398a169e2b6e49a5b308d, with debug_info, not stripped
yash: no such command `youp'
@bordam
Copy link

bordam commented Mar 10, 2022

On Arch I was able to get around this replacing /app/share/com.gigitux.youp/com.gigitux.youp.gresource with /usr/share/com.gigitux.youp/com.gigitux.youp.gresource in src/main.rs. Don't know if this is a correct way to fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants