Bug 175910 - protocol desktop:// is not working with kde3 apps
Summary: protocol desktop:// is not working with kde3 apps
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Unmaintained
Component: general (show other bugs)
Version: SVN
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-23 17:17 UTC by Manuel
Modified: 2008-11-28 15:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel 2008-11-23 17:17:44 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    SuSE RPMs

when D&D files from a folderview from the desktop-folder into a kde3 app (in my case amarok 1.4) the filename is given with the new desktop:/ protocol (also when opening folders with dolphin). maybe a nice idea in some cases but it would be better to take the "right" path in dolphin and it is a MUST in kde3 apps, cause they don't understand desktop:/ . discussed the problem in irc with annma
Comment 1 David Faure 2008-11-27 21:14:40 UTC
I see.
KDirModel::mimeData needs to export mostLocalUrls as text/uri-list and kde urls as application/x-kde4-urilist.
The decoding for application/x-kde4-urilist is already there in kurl::list (TODO add the '4'), but the encoding code is missing.
Comment 2 David Faure 2008-11-28 15:22:41 UTC
SVN commit 890184 by dfaure:

Export both the real urls (using a kde4-specific mimetype, to avoid incompatibilities with kde3 apps) and the most-local-urls (as text/uri-list), like we did in kde3.
BUG: 175910


 M  +37 -21    kdecore/io/kurl.cpp  
 M  +13 -0     kdecore/io/kurl.h  
 M  +30 -1     kdecore/tests/kurlmimetest.cpp  
 M  +1 -0      kdecore/tests/kurlmimetest.h  
 M  +12 -11    kio/kio/kdirmodel.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=890184