-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppImage: Don't set LD_LIBRARY_PATH #7686
Conversation
With this PR on Linux Mint 22:
The last 3 lines are not printed when using the AppImage from the master branch. However, Carla still works despite the error messages. |
Tested:
|
Thanks for testing. Same on Ubuntu 24.04. I'm a bit confused by this error because those libraries specifically don't link directly against Setting |
The error is caused during the plugin scanning. This is the call stack:
The error is misleading because the symbol Things I've tried:
Some observations...
if (! library->load()) {
m_errors[file.baseName()] = library->errorString();
qWarning("%s", library->errorString().toLocal8Bit().data());
continue;
}
+ qDebug() << "PluginFactory: Loaded: " << file.absoluteFilePath();
|
* Refactor launcher scripts into apprun-hooks
After a long conversation with @messmerd on Discord, we've decided to attempt to leverage Due to the logic involved to do this responsibly, i.e:
... this conditional logic caused our poor However, due to the ![]() ![]() With regards to the longevity of this This PR is reading for testing and review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested but the Carla hook looks good to me
Shellcheck is already scanning scripts in The launcher looks like this now when run from terminal:
I've also tested our experimental |
Don't set LD_LIBRARY_PATH Move launch_lmms.sh to dedicated apprun-hooks
Don't set LD_LIBRARY_PATH Move launch_lmms.sh to dedicated apprun-hooks
Don't set LD_LIBRARY_PATH Move launch_lmms.sh to dedicated apprun-hooks
Don't set LD_LIBRARY_PATH Move launch_lmms.sh to dedicated apprun-hooks
Don't set LD_LIBRARY_PATH Move launch_lmms.sh to dedicated apprun-hooks
Our
AppRun
script historically setsLD_LIBRARY_PATH
to a sane location (e.g. the containedusr/lib
) but this pollutes the dynamic loader for child processes, such as glibc's hwcaps, which can crash certain system calls that rely on the dynamic link loader (such as some calls that occurs when loading ourRemoteVstPlugin.exe.so
)Closes #7684