Commit 36d4d6ff authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Fix registration with D-Bus, use service name as announced in desktop file

parent 38e41744
......@@ -24,7 +24,15 @@ include(ECMPoQmTools)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core DBus Gui Widgets)
find_package(KF5 REQUIRED
Archive CoreAddons DocTools WidgetsAddons XmlGui I18n Config KIO
Archive
CoreAddons
DocTools
WidgetsAddons
XmlGui
I18n
Config
KIO
DBusAddons
)
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
......
......@@ -22,6 +22,7 @@ set(kcachegrind_LIBS
KF5::XmlGui
KF5::ConfigCore KF5::ConfigGui
KF5::KIOCore KF5::KIOFileWidgets KF5::KIOWidgets KF5::KIONTLM
KF5::DBusAddons
)
target_link_libraries(kcachegrind core views ${kcachegrind_LIBS})
......
......@@ -29,6 +29,7 @@
#include <KAboutData>
#include <KLocalizedString>
#include <KSharedConfig>
#include <KDBusService>
#include "kdeconfig.h"
#include "toplevel.h"
......@@ -49,10 +50,13 @@ int main( int argc, char ** argv )
aboutData.addAuthor(i18n("Josef Weidendorfer"),
i18n("Author/Maintainer"),
QStringLiteral("Josef.Weidendorfer@gmx.de"));
aboutData.setOrganizationDomain("kde.org");
aboutData.setDesktopFileName(QStringLiteral("org.kde.kcachegrind"));
KAboutData::setApplicationData(aboutData);
KDBusService service(KDBusService::Multiple);
// KGlobal::locale()->insertCatalog("kcachegrind_qt");
Loader::initLoaders();
......
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