probonopd / linuxdeployqt

Makes Linux applications self-contained by copying in the libraries and plugins that the application uses, and optionally generates an AppImage. Can be used for Qt and other applications
Other
2.19k stars 409 forks source link

customscript instead of AppRun use sudo failed #362

Open kidalake opened 5 years ago

kidalake commented 5 years ago

!/bin/bash

HERE="$(dirname "$(readlink -f "${0}")")" export LD_LIBRARY_PATH=${HERE}/usr/lib/foobar:$LD_LIBRARY_PATH sudo"${HERE}/usr/bin/foo" "$@"

run appimage show results like this: sudo: xx/usr/bin/foo: command not found

probonopd commented 5 years ago

What makes you think this is a bug in linuxdeployqt rather than a bug in your script?

kidalake commented 5 years ago

What makes you think this is a bug in linuxdeployqt rather than a bug in your script?

It could be my fault! but when run the script directly it work success.

probonopd commented 5 years ago

Can you upload your AppImage for analysis please?