<table><tr><td style="">chinmoyr created this revision.<br />chinmoyr added reviewers: sebas, bshah, Plasma.<br />chinmoyr added a subscriber: Plasma.<br />chinmoyr set the repository for this revision to rPLASMAWORKSPACE Plasma Workspace.<br />chinmoyr 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/D2054" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>In plasma-workspace the prepareUDSEntry in file kioslave/desktop/kio_desktop.cpp sets UDS_TARGET_URL as <br />
'<em>entry.insert(KIO::UDSEntry::UDS_TARGET_URL, entry.stringValue(KIO::UDSEntry::UDS_LOCAL_PATH)</em>'.<br />
Now using UDS_LOCAL_PATH will return the path without file scheme. This schemeless path will be set in UDS_TARGET_URL and then will be used by<br />
kio's <em>targetUrl </em>and then final passed to <em>Krun</em> where it will fail the scheme test eventually leading to the said bug.</p>

<p>What this patch will do is simply create a url using <em>QUrl::fromLocalFile</em> and then pass the <em>url.toString()</em>'s result  to <em>insert</em>. This way the bug won't occur.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rPLASMAWORKSPACE Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2054" rel="noreferrer">https://phabricator.kde.org/D2054</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>new:kioslave/desktop/kio_desktop.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>chinmoyr, sebas, bshah, Plasma<br /><strong>Cc: </strong>plasma-devel, Plasma, jensreuterberg, sebas<br /></div>