Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 6fb7ed23 authored by David Edmundson's avatar David Edmundson

Register klipper DBus interface when in non-standalone mode

Summary:
There's no reason to have different behaviour depending on whether the
UI is presented in an applet or not.

Test Plan: Looked in qdbusviewer

Reviewers: #plasma

Subscribers: graesslin, heikobecker, broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D7536
parent c453e9b5
......@@ -96,8 +96,9 @@ Klipper::Klipper(QObject* parent, const KSharedConfigPtr& config, KlipperMode mo
{
if (m_mode == KlipperMode::Standalone) {
setenv("KSNI_NO_DBUSMENU", "1", 1);
QDBusConnection::sessionBus().registerObject(QStringLiteral("/klipper"), this, QDBusConnection::ExportScriptableSlots);
}
QDBusConnection::sessionBus().registerService(QStringLiteral("org.kde.klipper"));
QDBusConnection::sessionBus().registerObject(QStringLiteral("/klipper"), this, QDBusConnection::ExportScriptableSlots);
updateTimestamp(); // read initial X user time
m_clip = qApp->clipboard();
......
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