probonopd / go-appimage

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

Call ld-linux relative to cwd; invoke application without launching ld-linux explicitly #49

Open ghost opened 4 years ago

ghost commented 4 years ago

Hi,

After the fix in #44 -s deploy does indeed work for qt5 and it does appear to be completely self contained.

However a strange problem has arisen that was not an issue before. The same thing occurs at build 495 and that is why I tested build 497.

My application checks XDG_CONFIG_HOME for the location of the user's config folder.

That is now coming back as: /home/juus/.config/ld-linux-x86-64.so This is also the case where a "My.AppImage.config" folder is available, putting an ld-linux-x86-64.so folder in there too.

Within that .config/ld-linux-x86-64.so folder everything then follows as if it was the normal .config folder, putting a folder with my Appname inside.

I've checked older AppImages (built with linuxdeploy) and that was not a problem, it always returned either /home/juus/.config or My.AppImage.config.

In the log references to "ld-linux-x86-64.so" were:

2020/08/02 11:16:48 Deploying /lib64/ld-linux-x86-64.so.2... ... 2020/08/02 11:16:49 Copying in and patching ELFs which are not already in the AppDir... 2020/08/02 11:16:49 Not writing rpath in commandoo.AppDir/usr/lib64/ld-linux-x86-64.so.2 because itname starts with ld-... 2020/08/02 11:16:49 Patching qt_prfxpath, otherwise can't load platform plugin... 2020/08/02 11:16:49 Offset of qt_prfxpath: 3561388 2020/08/02 11:16:49 Qt prefix directory in the AppDir: commandoo.AppDir/usr/lib/x86_64-linux-gnu/qt 2020/08/02 11:16:49 Relative path from ld-linux to Qt prefix directory in the AppDir: ../usr/lib/x864-linux-gnu/qt5 2020/08/02 11:16:49 Patching qt_prfxpath in libQt5Core.so.5 to .. 2020/08/02 11:16:50 Copying in copyright files...