<table><tr><td style="">kossebau created this revision.<br />kossebau added a reviewer: davidedmundson.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.<br />kossebau 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/D11106">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Patch inlines the code of the constructor and destructor of the old<br />
QApplication subclass PolicyKitKDE and then reorders things as needed:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">KDBusService for singleton run should be started before any further init</li>
<li class="remarkup-list-item">KLocalizedString::setApplicationDomain & i18n calls should be only done after the QApp instance has been created</li>
<li class="remarkup-list-item">KAboutData::setApplicationData best done before doing any D-Bus activity as that relies on app metadata</li>
<li class="remarkup-list-item">QCoreApplication::setOrganizationDomain duplicates app metadata setting from KAboutData::setApplicationData, only needed before due to latter done after first D-Bus activity</li>
<li class="remarkup-list-item">m_listener->deleteLater() in app destructor does not make sense, as the listener object is deleted due to being QObject child of the QApplication instance</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R121 Policykit (Polkit) KDE Agent</div></div></div><br /><div><strong>BRANCH</strong><div><div>fixappinitorder</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11106">https://phabricator.kde.org/D11106</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
main.cpp<br />
policykitkde.cpp<br />
policykitkde.h</div></div></div><br /><div><strong>To: </strong>kossebau, davidedmundson<br /><strong>Cc: </strong>plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>