Bug 177382

Summary: Drag and drop a remote URL to desktop doesn't assign a label
Product: [Unmaintained] plasma4 Reporter: FiNeX <finex>
Component: containment-desktopAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: aseigo, mail
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description FiNeX 2008-12-10 13:48:32 UTC
If I drag and drop a remote url (from konqui/dolphin url address) to plasma desktop containment, I'm asked if I want to create an icon. This icon will have no label, while local directories dropped on the desktop containment shows the directory name as label.

Even dropping the "/" (root) directory doesn't assign it a label.
Comment 1 Sebastian Sauer 2008-12-10 15:44:19 UTC
With urls dropped from Konqi to the desktop the reason is, that the mimetype is "application/octet-stream" which isn't assigned to any app here. If I do a hardcoded;
if(mimetype=="application/octet-stream") mimetype="text/html";
it works fine (name is used and clicking on the item opens it using the assigned app (konqi in my case)).
Comment 2 Aaron J. Seigo 2008-12-10 19:57:46 UTC
@sebsaur: where are you putting that line which "fixes" it? (sounds like we may need to double check the mimetype of dropped urls at some point in the code..)
Comment 3 Beat Wolf 2008-12-12 13:07:12 UTC
SVN commit 896060 by beatwolf:

try to give at least some name to the icon if we can't find anything
BUG:177382


 M  +9 -0      icon.cpp  


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