--===============1761542938596965674== Content-Type: multipart/alternative; boundary="3ed7a9cf456c4427995422b273f00912" --3ed7a9cf456c4427995422b273f00912 Content-Type: text/plain; charset="ascii" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit chinmoyr created this revision. chinmoyr added reviewers: sebas, bshah, Plasma. chinmoyr added a subscriber: Plasma. chinmoyr set the repository for this revision to rPLASMAWORKSPACE Plasma Workspace. chinmoyr added a project: Plasma. Restricted Application added a subscriber: plasma-devel. REVISION SUMMARY In plasma-workspace the prepareUDSEntry in file kioslave/desktop/kio_desktop.cpp sets UDS_TARGET_URL as '//entry.insert(KIO::UDSEntry::UDS_TARGET_URL, entry.stringValue(KIO::UDSEntry::UDS_LOCAL_PATH)//'. 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 kio's //targetUrl //and then final passed to //Krun// where it will fail the scheme test eventually leading to the said bug. What this patch will do is simply create a url using //QUrl::fromLocalFile// and then pass the //url.toString()//'s result to //insert//. This way the bug won't occur. REPOSITORY rPLASMAWORKSPACE Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D2054 AFFECTED FILES new:kioslave/desktop/kio_desktop.cpp EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: chinmoyr, sebas, bshah, #plasma Cc: plasma-devel, #plasma, jensreuterberg, sebas --3ed7a9cf456c4427995422b273f00912 Content-Type: text/html; charset="ascii" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable chinmoyr=20created=20this=20revision.ch= inmoyr=20added=20reviewers:=20sebas,=20bshah,=20Plasma.chinmoyr=20a= dded=20a=20subscriber:=20Plasma.chinmoyr=20set=20the=20repository= =20for=20this=20revision=20to=20rPLASMAWORKSPACE=20Plasma=20Workspace.chinmoyr=20added=20a=20project:=20Plasma.Restricted=20Applicat= ion=20added=20a=20subscriber:=20plasma-devel.View=20Revision
REVISI= ON=20SUMMARY

In=20plasma-workspace=20the=20prepareUDSEntry= =20in=20file=20kioslave/desktop/kio_desktop.cpp=20sets=20UDS_TARGET_URL=20a= s=20 'entry.insert(KIO::UDSEntry::UDS_TARGET_URL,=20entry.stringValue(K= IO::UDSEntry::UDS_LOCAL_PATH)'. Now=20using=20UDS_LOCAL_PATH=20will=20return=20the=20path=20without=20file= =20scheme.=20This=20schemeless=20path=20will=20be=20set=20in=20UDS_TARGET_U= RL=20and=20then=20will=20be=20used=20by kio's=20targetUrl=20and=20then=20final=20passed=20to=20Kr= un=20where=20it=20will=20fail=20the=20scheme=20test=20eventually=20lea= ding=20to=20the=20said=20bug.

What=20this=20patch=20will=20do=20is=20simply=20create=20a=20url=20using= =20QUrl::fromLocalFile=20and=20then=20pass=20the=20url.toStrin= g()'s=20result=20=20to=20insert.=20This=20way=20the=20bu= g=20won't=20occur.

REPOSITORY
rPLASMAWORKSPACE=20Plasma=20Workspace
REVISION=20DETAIL
https://phabricator.kde.org/D2054
AFFECTED=20FILES
new:k= ioslave/desktop/kio_desktop.cpp
EMAIL= =20PREFERENCES
https://phabricator.kde.or= g/settings/panel/emailpreferences/
To:= =20chinmoyr,=20sebas,=20bshah,=20PlasmaCc:=20plasma-devel,=20Plasma,=20jensreuterberg,=20sebas
--3ed7a9cf456c4427995422b273f00912-- --===============1761542938596965674== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KUGxhc21hLWRl dmVsIG1haWxpbmcgbGlzdApQbGFzbWEtZGV2ZWxAa2RlLm9yZwpodHRwczovL21haWwua2RlLm9y Zy9tYWlsbWFuL2xpc3RpbmZvL3BsYXNtYS1kZXZlbAo= --===============1761542938596965674==--