If you enable the preview for text files, this also concernes launchers for applications and URLs. Alas a default icon is used in the preview which doesn't help in identifying the text file as launcher. If an icon is specified in the desktop-file that icon should be used as watermark in the preview instead of the default icon. E.g. a launcher for an URL should contain the text-html icon as watermark in the preview, the icon that is specified in the text file and would be used if the preview wasn't enabled. Reproducible: Always
Created attachment 99587 [details] wrong icon in preview (default icon), look at properties (correct icon)
This is not the icon, but the thumbnail (preview). What is shown if you turn off previews? See also bug 220330.
Created attachment 99666 [details] screenshot of url.desktop with disabled previews When i turn off the preview the correct icon, the html one, is shown. Preview thumbnails other than desktop-files show the correct icon in the thumbnail. Bug 220330 references the same issue, but for KDE SC 4. This should be handled as a duplicate? I don't care if the desktop-files are shown as text previews or not when text preview is enabled, it just should be guaranteed that the icon of the desktop-file (application icon or in case of URL the default URL icon) is used with enabled preview for text files, either the icon without preview or the correct icon in the thumbnail preview. An option (include/exclude desktop-files) for the text file preview would be nice (I know devs don't like that ;) ) but even in that case the icon (solo or inside thumbnail) should be correct.
Confirmed; turning on previews makes .desktop files render their contents, but does not badge them with the correct icon, if available.