I strugle with AppImage and I have some success (AppImage is created and my app can run from it).
But I have strange problem: When I start my app (writen with C++ and Qt) I setup all dirs suposed to use by my app (this is due to operating systems differences). Especially I have dir to images. I setup these dirs simply related to my exe (argv main function parameter). Problem is that I have message like this:
Error: Exception occurs! File: /home/szyk/!-EnergoKod/!-Libs/EnergoKodEditor1/Src/LineNumberArea.cpp, in line: 68, in function: loadSettings Error code: 6, Error message: Bookmark image not found! Missing file: /home/szyk/!-EnergoKod/Textprofan2/Installers/Linux/share/Textprofan2-x86_64.AppImage/Images/bookmark.svg Module: Energo Kod Editor 1 library Code: 6
In this case I suppose (on Linux) my exe is located in
/usr/bin and images are in
I want to write my app properly so I want to know how should I setup my internaly used dirs.
So my question is:
How shoud I access my app resources? In case it is working inside AppImage package. It require some special hanling? Or I lame in my code?