AppImageCrafters / AppRun

AppDir runtime components
MIT License
26 stars 10 forks source link

Set runtime environment if the execution flow returns to the AppDir #19

Closed azubieta closed 3 years ago

azubieta commented 3 years ago

If an external application is executed the runtime environment is removed. But if a binary from the AppImage is executed again this environment is not restored.

AppDir/bin/a exec /bin/b /bin/b exec AppDir/bin/c (At this step the AppImage execution environment must me restored)

azubieta commented 3 years ago

I was considering prepending all exec calls with the right ld-linux, that removes the need of patching binaries at build time and also to coping the ld-linux binary to /tmp on startup.

NOTE:

Qt apps look for the qt.conf file at /lib/ when the system ld-linx is used. This path is not writable by a regular user.

azubieta commented 3 years ago

This feature was added in commit dca10e331dbe79468866ce2cc30659dc2d625553 with an important fix on caa8f5e