Verified Commit 684e1eab authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Start KOrgac via DBus activation on launch

Summary:
KOrgac is autostarted on session start, but just to be sure, we also try to launch it
on Kontact (and KOrganizer) start via DBus invocation.

Reviewers: #kde_pim, vkrause

Reviewed By: #kde_pim, vkrause

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D29505
parent a62c8975
......@@ -64,7 +64,6 @@ find_package(KF5Akonadi ${AKONADI_VERSION} CONFIG REQUIRED)
find_package(KF5KontactInterface ${KONTACTINTERFACE_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Libkdepim ${LIBKDEPIM_LIB_VERSION_LIB} CONFIG REQUIRED)
find_package(KF5GrantleeTheme ${LIBGRANTLEETHEME_LIB_VERSION_LIB} CONFIG REQUIRED)
find_package(KF5KdepimDBusInterfaces ${KDEPIM_APPS_LIB_VERSION_LIB} CONFIG REQUIRED)
include_directories(${kontact_SOURCE_DIR} ${kontact_BINARY_DIR})
......
......@@ -63,7 +63,6 @@ set_target_properties(kontact_bin PROPERTIES OUTPUT_NAME kontact)
target_link_libraries(kontact_bin
KF5::Service
KF5::KdepimDBusInterfaces
kontactprivate
KF5::KontactInterface
KF5::Crash
......
......@@ -27,8 +27,6 @@
#include "prefs.h"
using namespace Kontact;
#include <KdepimDBusInterfaces/ReminderClient>
#include <KontactInterface/Plugin>
#include <KontactInterface/UniqueAppHandler>
#include <KontactInterface/PimUniqueApplication>
......@@ -41,6 +39,8 @@ using namespace Kontact;
#include <KCrash>
#include <QCommandLineParser>
#include <QDBusConnection>
#include <QDBusConnectionInterface>
#include <iostream>
#include <kdelibs4configmigrator.h>
......@@ -150,7 +150,7 @@ int KontactApp::activate(const QStringList &args, const QString &workingDir)
mMainWindow->selectPlugin(moduleName);
}
KPIM::ReminderClient::startDaemon();
QDBusConnection::sessionBus().interface()->startService(QStringLiteral("org.kde.kontact"));
// Handle startup notification and window activation
// (The first time it will do nothing except note that it was called)
......
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