<table><tr><td style="">graesslin created this revision.<br />graesslin added a reviewer: Plasma.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</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/D3161" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>By default kcmshell5 registers as org.kde.kcmshell5, but such a desktop<br />
file does not exist. Which means that on Wayland neither window manager<br />
nor task manager is able to provide a useful window icon for<br />
configuration window.</p>

<p>This change tries to locate the desktop file of the module passed to<br />
kcmshell5. If it is found it is set as the application's desktop file<br />
name. Thus the compositor and task manager actually know the desktop<br />
file which was used to start the kcmshell5 instance.</p>

<p>This is only done if kcmshell5 is invoked for only one module. In case<br />
of multiple modules the application invoking kcmshell5 should pass a<br />
proper desktop file name through the command line argument. And if the<br />
desktopfile got specified already it is not updated from the module.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>KWin Effects KCM shows proper icon on Wayland</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKDECLITOOLS KDE CLI Utilities</div></div></div><br /><div><strong>BRANCH</strong><div><div>desktop-file-name</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3161" rel="noreferrer">https://phabricator.kde.org/D3161</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kcmshell/main.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>graesslin, Plasma<br /><strong>Cc: </strong>plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas<br /></div>