<table><tr><td style="">hein created this revision.<br />Restricted Application added a project: Plasma.
</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/D5006" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>System Settings installs two .desktop files:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">kdesystemsettings.desktop setting NotShowIn=KDE, for non-KDE desktops</li>
<li class="remarkup-list-item">systemsettings.desktop, the one we use in Plasma</li>
</ul>
<p>As of <a href="https://phabricator.kde.org/R124:39e13de3468add20f37eb0f8814dd6996384d23f" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">39e13de3468a</a>, it sets "kdesystemsettings" as its desktop file<br />
name using KAboutData. As this is not the one we show in our menus,<br />
it's not the one used as applicationId for the KStartupInfo provided<br />
to the Task Manager after starting System Settings. With the eventual<br />
window telling the Task Manager to use a different .desktop file, the<br />
Task Manager can no longer match up the startup notification and the<br />
window, causing them to co-exist instead of replace each other.</p>
<p>Telling the environment you're running in to look at a .desktop file<br />
you've also told it to ignore is wrong app behavior, and this should<br />
not be worked around in the Task Manager (especially as it would<br />
cause I/O in a hotpath, requiring it to open and parse the .desktop<br />
file to realize it's crummy and ignore it, falling back from the<br />
window hint to a slow heuristic).</p>
<p>This patch instead makes it use the correct desktop file name when<br />
KDE_FULL_SESSION is set. This completes the original hack of shipping<br />
two .desktop files.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R124 System Settings</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5006" rel="noreferrer">https://phabricator.kde.org/D5006</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>app/main.cpp</div></div></div><br /><div><strong>To: </strong>hein, Plasma, graesslin, mart, bshah<br /><strong>Cc: </strong>plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>