diff --git a/src/blackcore/application.cpp b/src/blackcore/application.cpp index b05584c3f..2d74c0a8f 100644 --- a/src/blackcore/application.cpp +++ b/src/blackcore/application.cpp @@ -903,6 +903,16 @@ namespace BlackCore return this->startWebDataServices(); } + bool CApplication::isLocalContext() const + { + return this->getIContextApplication() && this->getIContextApplication()->isUsingImplementingObject(); + } + + bool CApplication::isDBusContext() const + { + return this->getIContextApplication() && !this->getIContextApplication()->isUsingImplementingObject() && !this->getIContextApplication()->isEmptyObject(); + } + CStatusMessageList CApplication::startCoreFacadeAndWebDataServices() { Q_ASSERT_X(m_parsed, Q_FUNC_INFO, "Call this function after parsing"); diff --git a/src/blackcore/application.h b/src/blackcore/application.h index 456536f8e..04e1c42b2 100644 --- a/src/blackcore/application.h +++ b/src/blackcore/application.h @@ -364,6 +364,11 @@ namespace BlackCore //! Get the facade CCoreFacade *getCoreFacade() { return m_coreFacade.data(); } + //! Local or DBus application? @{ + bool isLocalContext() const; + bool isDBusContext() const; + //! @} + //! Get the facade const CCoreFacade *getCoreFacade() const { return m_coreFacade.data(); } //! @} diff --git a/src/swiftguistandard/swiftguistd.cpp b/src/swiftguistandard/swiftguistd.cpp index 48352bd4f..7c5375825 100644 --- a/src/swiftguistandard/swiftguistd.cpp +++ b/src/swiftguistandard/swiftguistd.cpp @@ -362,6 +362,7 @@ void SwiftGuiStd::setContextAvailability() if (m_coreAvailable) { // core has just become available (startup) + // this HERE is called with and without DBus sGui->getIContextApplication()->synchronizeLogSubscriptions(); sGui->getIContextApplication()->synchronizeLocalSettings(); }