Commit 6493ccdb authored by David Edmundson's avatar David Edmundson
Browse files

Plasma 5.25 brings breaking API changes to the lockscreen

In preparation check the version and fall back to breeze
parent bdf08b1a
......@@ -192,6 +192,11 @@ void UnlockApp::initialize()
if (!KScreenSaverSettingsBase::theme().isEmpty()) {
QString plasmaApiVersion = package.metadata().value("X-Plasma-APIVersion", "1");
if (plasmaApiVersion.toInt() <= 1) {
qCWarning(KSCREENLOCKER_GREET) << "Lockscreen QML outdated, falling back to default";
m_mainQmlPath = package.fileUrl("lockscreenmainscript");
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