Skip to content
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

Allow plugins to be skipped at runtime #7691

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

tresf
Copy link
Member

@tresf tresf commented Feb 8, 2025

When LMMS starts up on a Linux system without Carla installed, the log shows warnings:

BEFORE:

[carla-hook.sh] Carla does not appear to be installed.  That's OK, please ignore any related library errors.
Cannot load library /home/owner/Downloads/squashfs-root/usr/lib/libcarlabase.so: (libcarla_native-plugin.so: cannot open shared object file: No such file or directory)
Cannot load library /home/owner/Downloads/squashfs-root/usr/lib/libcarlarack.so: (libcarla_native-plugin.so: cannot open shared object file: No such file or directory)
Cannot load library /home/owner/Downloads/squashfs-root/usr/lib/libcarlapatchbay.so: (libcarla_native-plugin.so: cannot open shared object file: No such file or directory)

... however, as can be observed by the logs, we already detected this problem, so we should have a way of informing LMMS to not load plugin at startup.

This PR adds a plugin filter called LMMS_EXCLUDE_PLUGINS that can be set as an environment variable to suppress this by skipping the loading of the a plugin based on name or wildcard (QRegexExpression).

AFTER:

[carla-hook.sh] Carla does not appear to be installed, we'll remove it from the plugin listing.

@tresf tresf added this to the 1.3 milestone Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant