Commit e68ab2f6 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

pluginmanager: always load the arkrc config file

If we don't specify the name of the config file to open, the name of the
executable will be used, but this breaks when the class is used outside
Ark (for example in the tests).
parent 852ae737
......@@ -170,9 +170,11 @@ QVector<Plugin*> PluginManager::filterBy(const QVector<Plugin*> &plugins, const
void PluginManager::loadPlugins()
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("kerfuffle"));
// This class might be used from executables other than ark (e.g. the tests),
// so we need to specify the name of the config file.
// TODO: once we have a GUI in the settings dialog,
// use this group to write whether a plugin gets disabled.
const KConfigGroup conf(KSharedConfig::openConfig(), "EnabledPlugins");
const KConfigGroup conf(KSharedConfig::openConfig(QStringLiteral("arkrc")), "EnabledPlugins");
QSet<QString> addedPlugins;
foreach (const KPluginMetaData &metaData, plugins) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment