Changeset View
Changeset View
Standalone View
Standalone View
src/kded.cpp
Show First 20 Lines • Show All 767 Lines • ▼ Show 20 Line(s) | 734 | #endif | |||
---|---|---|---|---|---|
768 | 768 | | |||
769 | QDBusConnectionInterface *bus = QDBusConnection::sessionBus().interface(); | 769 | QDBusConnectionInterface *bus = QDBusConnection::sessionBus().interface(); | ||
770 | // Also register as all the names we should respond to (org.kde.kcookiejar, org.kde.khotkeys etc.) | 770 | // Also register as all the names we should respond to (org.kde.kcookiejar, org.kde.khotkeys etc.) | ||
771 | // so that the calling code is independent from the physical "location" of the service. | 771 | // so that the calling code is independent from the physical "location" of the service. | ||
772 | const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("kf5/kded")); | 772 | const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("kf5/kded")); | ||
773 | foreach (const KPluginMetaData &metaData, plugins) { | 773 | foreach (const KPluginMetaData &metaData, plugins) { | ||
774 | const QString serviceName = metaData.rawData().value(QStringLiteral("X-KDE-DBus-ServiceName")).toString(); | 774 | const QString serviceName = metaData.rawData().value(QStringLiteral("X-KDE-DBus-ServiceName")).toString(); | ||
775 | if (serviceName.isEmpty()) { | 775 | if (serviceName.isEmpty()) { | ||
776 | qCWarning(KDED) << "No X-KDE-DBus-ServiceName found in" << metaData.fileName(); | | |||
777 | continue; | 776 | continue; | ||
778 | } | 777 | } | ||
779 | if (!bus->registerService(serviceName)) { | 778 | if (!bus->registerService(serviceName)) { | ||
780 | qCWarning(KDED) << "Couldn't register name" << serviceName << "with DBUS - another process owns it already!"; | 779 | qCWarning(KDED) << "Couldn't register name" << serviceName << "with DBUS - another process owns it already!"; | ||
781 | } | 780 | } | ||
782 | } | 781 | } | ||
783 | 782 | | |||
784 | KSharedConfig::Ptr config = KSharedConfig::openConfig(); | 783 | KSharedConfig::Ptr config = KSharedConfig::openConfig(); | ||
Show All 30 Lines |