<table><tr><td style="">kmaterka added a comment.
</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/D25223">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D25223#561570" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D25223#561570</a>, <a href="https://phabricator.kde.org/p/davidedmundson/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@davidedmundson</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><p>I had this. I abandoned because we ended up forking some special wayland stuff in our DBus menu, so would always want our implementation.</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>?<a href="https://codereview.qt-project.org/c/qt/qtbase/+/168458" class="remarkup-link" target="_blank" rel="noreferrer">https://codereview.qt-project.org/c/qt/qtbase/+/168458</a></p></blockquote></div>
</blockquote>
<p>Having an option to fallback to default/predefined theme would be great, but I guess KDE needs to have it's own SystemTray implementation anyway (?). Some cleanup is required, because currently:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">in Plasma-integration (QPA theme):<ul class="remarkup-list">
<li class="remarkup-list-item">there is a forked QDBusMenuBar from Qt</li>
<li class="remarkup-list-item">for tray icon it uses KStatusNotifierItem which has it's drawbacks (additional layer)</li>
</ul></li>
<li class="remarkup-list-item">in KNotifications, KStatusNotifierItem uses libdbusmenu-qt (not forked). It is optional dependency, is there any reason for that in 2019?</li>
<li class="remarkup-list-item">in plasma-workspace StatusNotifierItemSource uses DBusMenuImporter forked from libdbusmenu-qt</li>
<li class="remarkup-list-item">Qt has it's own implementation of DBus menu exporter:<ul class="remarkup-list">
<li class="remarkup-list-item">in genericunix qpa theme, unfortuantelly QDBusPlatformMenu is private</li>
<li class="remarkup-list-item">it uses undocumented "<a href="https://github.com/qt/qtbase/commit/ff169e8859457188f94aed86368876ba5bab2e90" class="remarkup-link" target="_blank" rel="noreferrer">NewMenu</a>" signal</li>
<li class="remarkup-list-item">and is buggy: <a href="https://bugreports.qt.io/browse/QTBUG-79287" class="remarkup-link" target="_blank" rel="noreferrer">QTBUG-79287</a>, <a href="https://bugs.kde.org/show_bug.cgi?id=383202" class="remarkup-link" target="_blank" rel="noreferrer">KDE 383202</a></li>
</ul></li>
<li class="remarkup-list-item">libdbusmenu-qt was not actively updated/maintained for years, I see that David made few commits in 2015. Shouldn't DBusMenuImporter be upstreamed?</li>
<li class="remarkup-list-item"><a href="https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/" class="remarkup-link" target="_blank" rel="noreferrer">Freedesktop spec</a> is still in draft phase</li>
</ul>
<p>Anyway, this is not part of this code review, sorry for the off topic.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R135 Integration for Qt applications in Plasma</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25223">https://phabricator.kde.org/D25223</a></div></div><br /><div><strong>To: </strong>kmaterka, Plasma, Frameworks, broulik<br /><strong>Cc: </strong>nicolasfella, davidedmundson, cgiboudeaux, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>