┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dbusinterface.h
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2019-12-24 18:28:26 +0100
committerElvis Angelaccio <[email protected]>2020-03-16 22:38:40 +0100
commitfa806d48dafec0c47141381740a5d7604293d32d (patch)
treee1813504cbb2d4b1d9cfe0334e50863b829936f4 /src/dbusinterface.h
parent405dd624fb6b708eea8ec82ef913fe820c51c654 (diff)
Exclude daemonized processes from Dolphin::attachToExistingInstance()
Summary: `dolphin --daemon` does not have the `/dolphin/Dolphin_1` dbus path, because it doesn't have any DolphinMainWindow. Instead of working around this issue (as we did in D21666 and D25510), just exclude these processes from the list of dbus instances checked by `Dolphin::attachToExistingInstance()`. CCBUG: 408244 Test Plan: Same test plan as in D21666 and D25510 Reviewers: #dolphin Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D26213
Diffstat (limited to 'src/dbusinterface.h')
-rw-r--r--src/dbusinterface.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dbusinterface.h b/src/dbusinterface.h
index baf804f68..391916d62 100644
--- a/src/dbusinterface.h
+++ b/src/dbusinterface.h
@@ -32,6 +32,19 @@ public:
Q_SCRIPTABLE void ShowFolders(const QStringList& uriList, const QString& startUpId);
Q_SCRIPTABLE void ShowItems(const QStringList& uriList, const QString& startUpId);
Q_SCRIPTABLE void ShowItemProperties(const QStringList& uriList, const QString& startUpId);
+
+ /**
+ * Set whether this interface has been created by dolphin --deamon.
+ */
+ void setAsDaemon();
+
+ /**
+ * @return Whether this interface has been created by dolphin --deamon.
+ */
+ bool isDaemon() const;
+
+private:
+ bool m_isDaemon = false;
};
#endif // DBUSINTERFACE_H