Bug 261196

Summary: Dragging a samba shared folder and creating a shortcut creates .desktop file without icon
Product: [Frameworks and Libraries] frameworks-kio Reporter: Kai Uwe Broulik <KaiUweBroulik2>
Component: generalAssignee: David Faure <faure>
Status: CONFIRMED ---    
Severity: normal CC: kde, kdelibs-bugs, nate, sitter
Priority: NOR Keywords: junior-jobs
Version: 5.66.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kai Uwe Broulik 2010-12-25 01:56:30 UTC
Version:           SVN (using KDE 4.5.90) 
OS:                Linux

When dragging a samba shared folder (i.e. a folder visible in the smb://hostname view) to another folder and selecting “create shortcut here” creates a .desktop file without icon (its icon is set to ”unknown”). Manually creating a shortcut to url using the New-menu correctly(?) uses the “network-workgroup” icon which looks nice.

Reproducible: Always
Comment 1 Nate Graham 2018-06-28 18:04:48 UTC
Confirmed in KDE Frameworks 5.47.
Comment 2 Harald Sitter 2020-02-06 14:31:04 UTC
I'm pretty sure that needs fixing in KIO's CopyJob which is what actually implements the link action. Supposedly it'd have to determine the icon at link time by doing a KIO::stat on the uri.