<table><tr><td style="">wbauer created this revision.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.
</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/D5502" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The "dir" and "path" variables are obviously swapped here by mistake.<br />
This results in the relativePath always being empty, and makes the function return "~/.local/share/" (or "~/.config/") instead of the correct path.</p>

<p>BUG: 345100</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Open kmenuedit, edit an existing sub menu and change the icon, the change is correctly applied now, it is written to ~/.local/share/desktop-directories/xxx.directory instead of ~/.local/share/xxx.directory.</p>

<p>Also create a new sub menu and choose a different icon immediately. The correct icon does show up in the application menu now.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R237 KConfig</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5502" rel="noreferrer">https://phabricator.kde.org/D5502</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/kdesktopfile.cpp</div></div></div><br /><div><strong>To: </strong>wbauer<br /><strong>Cc: </strong>Frameworks<br /></div>