<table><tr><td style="">cullmann created this revision.<br />cullmann added reviewers: Frameworks, KActivities.<br />Restricted Application added a project: Frameworks.<br />cullmann requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9703" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Allow applications using KActivities to not crash even if no dbus server is around.</p>

<p>e.g. Kate on macOS does immediately crash on opening any file ATM, as the calls have no checks if dbus is alive at all.<br />
With these checks, all is fine, thought no activities handling occurs, naturally.</p>

<p>An other solution would be to just skip compiling kactivies on macOS, but on the other side I think guarding against the case of no dbus connection is around doesn't hurt.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>without patch: crash on file open in e.g. kate</p>

<p>with path: file open works in kate</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R6 KActivities</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9703" rel="noreferrer">https://phabricator.kde.org/D9703</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/lib/manager_p.cpp</div></div></div><br /><div><strong>To: </strong>cullmann, Frameworks, KActivities<br /></div>