Commit e02496a0 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Nate Graham
Browse files

Do not start faulty coronas

It just floods the output with tons of things failing non-fatally and it
makes things hard to figure out.


(cherry picked from commit 45da7235)
parent e30ce421
......@@ -165,6 +165,10 @@ int main(int argc, char *argv[])
ShellCorona *corona = new ShellCorona(&app);
corona->setShell(cliOptions.value(shellPluginOption));
if (!corona->kPackage().isValid()) {
qCritical() << "starting invalid corona" << corona->shell();
return 1;
}
#ifdef WITH_KUSERFEEDBACKCORE
auto userFeedback = new UserFeedback(corona, &app);
......
......@@ -47,6 +47,9 @@ StandaloneAppCorona::StandaloneAppCorona(const QString &coronaPlugin, QObject *p
KPackage::Package package = KPackage::PackageLoader::self()->loadPackage(QStringLiteral("Plasma/Shell"));
package.setPath(m_coronaPlugin);
package.setAllowExternalPaths(true);
if (!package.isValid()) {
qCritical() << "starting invalid corona" << m_coronaPlugin;
}
setKPackage(package);
Plasma::Theme theme;
......
Markdown is supported
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