Bug 177382 - Drag and drop a remote URL to desktop doesn't assign a label
Summary: Drag and drop a remote URL to desktop doesn't assign a label
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Plasma
Component: containment-desktop (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-10 13:48 UTC by FiNeX
Modified: 2008-12-12 13:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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