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

plugin-loader: Only load plugins once #2038

Merged
merged 3 commits into from
Nov 29, 2023
Merged

plugin-loader: Only load plugins once #2038

merged 3 commits into from
Nov 29, 2023

Conversation

soreau
Copy link
Member

@soreau soreau commented Nov 29, 2023

Duplicate plugins are now ignored.

Fixes #2036.

Duplicate plugins are now ignored.

Fixes #2036.
@ammen99
Copy link
Member

ammen99 commented Nov 29, 2023

We already have a check for this

if (loaded_plugins.count(plugin))

The only question is why it doesn't work

@ammen99
Copy link
Member

ammen99 commented Nov 29, 2023

Oh, I see. We ought to make sure the plugin isn't duplicated in the pending plugins as well.

@soreau
Copy link
Member Author

soreau commented Nov 29, 2023

If I am understanding correctly, this PR would make it so the latter non-working check is not needed.

@ammen99
Copy link
Member

ammen99 commented Nov 29, 2023

Thanks @soreau for the initial work on this :)

@ammen99 ammen99 merged commit 46dc800 into master Nov 29, 2023
8 checks passed
@ammen99 ammen99 deleted the load-plugins-once branch November 29, 2023 21:32
mrsteve0924 pushed a commit to mrsteve0924/wayfire that referenced this pull request Mar 2, 2024
* plugin-loader: Only load plugins once

Duplicate plugins are now ignored.

Fixes WayfireWM#2036.

---------

Co-authored-by: Ilia Bozhinov <[email protected]>
ammen99 added a commit that referenced this pull request Mar 13, 2024
* plugin-loader: Only load plugins once

Duplicate plugins are now ignored.

Fixes #2036.

---------

Co-authored-by: Ilia Bozhinov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin loaded twice causes crash
2 participants