-
Notifications
You must be signed in to change notification settings - Fork 5
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
afc wont start #15
Comments
Hi, have you installed the program using gitpack or manually? I just tried with gitpack and its working fine. |
Actually I had the same problem Solution: Hope this helps. |
Thanks @kniloy07, that was a error on the readme, i didnt noticed it, i'm going to update the readme with the correct path, thanks for bringing that up, it will say /usr/share/afc-gui |
Describe the bug
afc-gui wont start and says
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Traceback (most recent call last):
File "/usr/bin/afc-gui", line 188, in
builder.add_from_file(pathglade)
gi.repository.GLib.Error: g-file-error-quark: Failed to open file “/usr/share/afc-gui/MAINGUI.glade”: No such file or directory (4)
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
...................................................................
You should never use relative paths to files, so you need to figure out an absolute path at runtime usually by defining an install prefix at build time. Also ideally you use GResources to simplify the process and improve performance.
An example would be something like this:
https://github.com/pithos/pithos/blob/master/bin/meson.build
https://github.com/pithos/pithos/blob/master/bin/pithos.in#L40-L41
See also: https://developer.gnome.org/gio/stable/GResource.html
You can get more help if you stop by #newcomers on ircs://irc.gimp.net or https://riot.im/app/#/room/#gimpnet#newcomers:matrix.org
I tried to google the answer. But it was too geeky for me.
............................................................
Linux Asus-s451lb 5.13.19-2-MANJARO #1 SMP PREEMPT Sun Sep 19 21:31:53 UTC 2021 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: