Skip to content

Commit 445b5bd

Browse files
committed
fix: call to LockFront1 dbus service is blocked in wayland
as title Log: as title Pms: BUG-304355
1 parent f4e9123 commit 445b5bd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

panels/notification/server/notificationmanager.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
#include <QJsonArray>
2323
#include <QJsonDocument>
2424
#include <QJsonObject>
25-
#include <applet.h>
25+
#include <QGuiApplication>
26+
2627
#include <appletbridge.h>
2728
#include <pluginloader.h>
2829

@@ -77,7 +78,9 @@ NotificationManager::NotificationManager(QObject *parent)
7778
// TODO temporary fix for AppNamesMap
7879
m_appNamesMap = config->value("AppNamesMap").toMap();
7980

80-
initScreenLockedState();
81+
if (QStringLiteral("wayland") != QGuiApplication::platformName()) {
82+
initScreenLockedState();
83+
}
8184
}
8285

8386
NotificationManager::~NotificationManager()

0 commit comments

Comments
 (0)