Open IQ-Malik opened 3 years ago
When an AppImage is running, it gets mounted to a temporary location. You can get this location by checking the contents of the $APPDIR
environment variable. You would have to construct the path using this.
But I don't think it's leading anywhere because AppImages cannot be updated using the QT Maintenance Tool. Check out https://github.com/antony-jr/QAppImageUpdate, a Qt5 library and plugin for updating AppImages.
I'm not sure if this is a path issue or an AppImage issue but here's the problem.
I'm using QTAutoUpdator to access the QT Maintenance Tool to check for updates automatically for my App. I can't build the Maintenance tool into the AppImage because it's created after when building an installer. So I'm referencing the location of the maintenance tool using a releative path to the parent directory:
This works for Mac when using macdeployqt but the executable is buried a few layers deeper.
I can run the executable from the AppDir and it's able to locate the maintenancetool. Even after squashing the app to squashfs, I can run the executable and it's able to see the maintenance tool. It's only when I'm running the AppImage that it's not able to locate the maintenance tool.
I've been reading a few threads where it may be something about the AppRun or the AppImage variable but I'm not sure in my case. Here's how I packaged the AppDir into an AppImage: