From 7fa3dae707ecec7b4093db5585ac5e8ff64d5259 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 4 Jun 2014 21:09:11 +0200 Subject: [PATCH] monitor the system bus as well --- .../systemtray/plugin/protocols/plasmoid/plasmoidprotocol.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applets/systemtray/plugin/protocols/plasmoid/plasmoidprotocol.cpp b/applets/systemtray/plugin/protocols/plasmoid/plasmoidprotocol.cpp index 6c8278396..3b770e7e7 100644 --- a/applets/systemtray/plugin/protocols/plasmoid/plasmoidprotocol.cpp +++ b/applets/systemtray/plugin/protocols/plasmoid/plasmoidprotocol.cpp @@ -240,6 +240,10 @@ void PlasmoidProtocol::initDBusActivatables() connect(callWatcher, &QDBusPendingCallWatcher::finished, this, &PlasmoidProtocol::serviceNameFetchFinished); + QDBusPendingCall systemAsync = QDBusConnection::systemBus().interface()->asyncCall("ListNames"); + QDBusPendingCallWatcher *systemCallWatcher = new QDBusPendingCallWatcher(systemAsync, this); + connect(systemCallWatcher, &QDBusPendingCallWatcher::finished, + this, &PlasmoidProtocol::serviceNameFetchFinished); } void PlasmoidProtocol::serviceNameFetchFinished(QDBusPendingCallWatcher* watcher)