probonopd / go-appimage

Go implementation of AppImage tools
MIT License
813 stars 71 forks source link

appimagetool -s deploy breaks things like qApp->applicationDirPath() #260

Open probonopd opened 1 year ago

probonopd commented 1 year ago

appimagetool -s deploy breaks things like qApp->applicationDirPath().

https://github.com/Murmele/Gittyup/pull/579#issuecomment-1629547188 contains a potential solution.

Maybe we should symlink ld-linux into each directory that contains ELF executables (e.g., usr/bin inside the AppImage), or symlink/move it at least into the directory of the main application.

Complication: We are looking for different payload applications when invoked through differently named symlinks. Those payload applications might be at different paths in the AppImage.

Potential heuristic: Check the PATH variable in the AppRun we generate, and put one such symlink into each of those directories from the PATH that exist in the AppImage. When launching a payload application, always launch it through the ld-linux that is in the same directory as the payload application.