Query list of project's available plugins

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DDoop

How do I access the list of a project’s available plugins in a tool script?
My goal is to create an editor plugin with a docked control that lists all the available plugins and allows the user to toggle their status, just like the standard plugin setting screen but in a docked panel for quick access (so I can test another plugin without opening that).
I searched the docs and a few help forums, but I’m still not sure where that’s exposed, if it is at all.

Of course, one option is to just parse every .cfg file

DDoop | 2021-01-20 21:45

:bust_in_silhouette: Reply From: cascas

Nope I don’t think its exposed. I think the engine just goes trough the addons folder looking for plugin.cfg files. Nothing you cant do in gdscript.

I started writing one and remembered the Asset Library.
GitHub - godot-extended-libraries/godot-plugin-refresher: Adds a dropdown and refresh button combo to the toolbar for instantly toggling off/on a plugin. Enables faster workflows for Godot plugin developers. (I have not tried this quite yet, just posting for future searchers. No reason to believe it won’t work)
Glad I looked as well; learned about the native ConfigFile class. I had been writing my own parser.

DDoop | 2021-01-21 16:48