Commit 143969f2 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[System Tray] Ignore services that start with a colon (:)

Bus names that start with a colon (':') character are unique connection names rather than well-known bus names
you want to be listening for.
Since the same code path is used for initial setup as is for detecting services at runtime, we would needlessly
iterate the list of known dbus-activatable services as well as apply a regular expression on them for all unique
connection names wasting some cycles.

Differential Revision: https://phabricator.kde.org/D21451
parent 100075ab
......@@ -536,6 +536,10 @@ void SystemTray::serviceOwnerChanged(const QString &serviceName, const QString &
void SystemTray::serviceRegistered(const QString &service)
{
if (service.startsWith(QLatin1Char(':'))) {
return;
}
//qCDebug(SYSTEM_TRAY) << "DBus service appeared:" << service;
for (auto it = m_dbusActivatableTasks.constBegin(), end = m_dbusActivatableTasks.constEnd(); it != end; ++it) {
const QString &plugin = it.key();
......
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