Commit c644a1ba authored by Volker Krause's avatar Volker Krause
Browse files

Trigger the reminder daemon fallback start code also in Kontact

The reminder daemon is usually started via autostart and session
management, so this is just an additional safety net. But still there
is no reason to limit this to standalone Korganizer.
parent c8809c2d
Pipeline #160397 passed with stage
in 1 minute and 44 seconds
......@@ -20,7 +20,6 @@
#include "korganizer_options.h"
#include <QCommandLineParser>
#include <QDBusConnectionInterface>
#include <Akonadi/ItemFetchJob>
#include <Akonadi/ItemFetchScope>
......@@ -50,8 +49,6 @@ int KOrganizerApp::activate(const QStringList &args, const QString &workingDir)
}
first = false;
QDBusConnection::sessionBus().interface()->startService(QStringLiteral("org.kde.kalendarac"));
QCommandLineParser parser;
korganizer_options(&parser);
parser.process(args);
......
......@@ -16,6 +16,8 @@
#include <KServiceTypeTrader>
#include <KXMLGUIFactory>
#include <QDBusConnectionInterface>
KOCore *KOCore::mSelf = nullptr;
KOCore *KOCore::self()
......@@ -27,7 +29,13 @@ KOCore *KOCore::self()
return mSelf;
}
KOCore::KOCore() = default;
KOCore::KOCore()
{
// fallback reminder daemon startup
// this should be started by autostart and session management already under normal
// circumstances, but another safety net doesn't hurt
QDBusConnection::sessionBus().interface()->startService(QStringLiteral("org.kde.kalendarac"));
}
KOCore::~KOCore()
{
......
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