disable certain plugins

Andreas Pakulat apaku at gmx.de
Fri Sep 10 15:12:04 UTC 2010

On 10.09.10 16:43:12, Julian Bäume wrote:
> On Friday 10 September 2010 08:59:40 Andreas Pakulat wrote:
> > On 10.09.10 04:14:05, Julian Bäume wrote:
> > > I understand how to enable certain plugins by default, via the
> > > IDEExtension interface and this also works fine.
> > 
> > This interface also defines which plugins are not loaded.
> In terms of: everything not in the defaultPlugins() list won’t be loaded, I 
> guess.

Exactly. Either the function returns an empty list, which means load any
plugin. Or it returns a list of plugin names. This is just a default
though, the user can still go to Settings->Configure <app>->Plugins and
select some that are disabled by default.

> > > But
> > > there are some plugins I can’t switch off. In the list of loaded plugins,
> > > I can find some plugins, that I don’t expect to be there. In the Modules
> > > configuration, I have the Qt documentation, CMake documentation and cvs
> > > and svn plugins disabled, but they show up in that list of loaded
> > > plugins.
> > 
> > You mean you disabled them under Settings->Configure KDevelop->Plugins
> > and they still show up after a restart under Help->Loaded Plugins? That
> > would be a bug.
> This still happens, I will try to investigate. I removed all the dirs in the 
> sessions directory to have a clean start. When starting KTechLab (the program, 
> I’m talking about the whole time ;)), in the Help->Loaded Plugins dialog, 
> there are the 2 documentation plugins loaded. (CMake and Qt) I think, that 
> shouldn’t happen.

So they're not in the list of loaded plugins you return from
defaultPlugins? At least disabling them manually seems to work (with
kdevelop 4.0) here, they don't show up on next start.

> Any hints, why this might be? This isn’t importent, yet, so 
> I might find some time to have a deeper look into this.

If its about first start in a new session the logic of that piece of code
is kinda complicated as it merges the existing info about enabled/disabled
plugins with the list of default plugins. Possibly something is wrong
there, the code in question is kdevplatform/shell/plugincontroller.cpp in


Caution: breathing may be hazardous to your health.

More information about the KDevelop-devel mailing list