Bug 168331 - The .desktop files are displayed as 'text previews'
Summary: The .desktop files are displayed as 'text previews'
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
: 163134 181772 185011 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-04 14:18 UTC by Diederik van der Boor
Modified: 2009-04-15 21:29 UTC (History)
7 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 Diederik van der Boor 2008-08-04 14:18:17 UTC
Version:           1.1 (using 4.1.00 (KDE 4.1.0) "release 16.3", KDE:KDE4:Factory:Desktop / openSUSE_10.3)
Compiler:          gcc
OS:                Linux (i686) release 2.6.22.17-0.1-default

Dolphin the text contents of a .desktop file if file previews are enabled. This is visible in the network:// slave, or just by opening /usr/share/applications.
Comment 1 Christophe Marin 2008-08-04 18:19:11 UTC
Where is the bug exactly ? .desktop files only contain text. 
Comment 2 Peter Penz 2008-08-05 08:14:08 UTC
@Christophe: I agree from a technical point of view that showing a text is OK. However I'm not sure whether it is correct from a users point of view. From a users point of view .desktop files have specific icons. My plan was that I have a look whether it's possible in an easy way to disable the previews for .desktop files - before committing I'd for sure request an official OK in core-devel to commit this.
Comment 3 Dario Andres 2009-01-02 13:15:02 UTC
*** Bug 163134 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-01-19 22:30:30 UTC
In order to fix this you have to block the .desktop mimetype from being recognized only as text/plain. I have looked into the code of kio/thumbnail but I couldn't do anything :(
Comment 5 Peter Penz 2009-01-24 17:31:23 UTC
*** Bug 181772 has been marked as a duplicate of this bug. ***
Comment 6 Ingomar Wesp 2009-01-29 21:31:15 UTC
This is probably making things even more complicated, but it would be awesome if .desktop files that are links (contain "Type=Link") would show a preview of the URL they point to.
Comment 7 Dario Andres 2009-02-21 03:13:19 UTC
*** Bug 185011 has been marked as a duplicate of this bug. ***
Comment 8 Angel Blue01 2009-03-04 17:37:03 UTC
As far as the user is concerned, .desktop files are equivalent to the Windows .LNK files, they are technically both text but they are just shortcuts and should at least display the file's type icon.
Comment 9 Peter Penz 2009-04-15 21:29:50 UTC
SVN commit 954443 by ppenz:

Most users don't want to have a text preview for *.desktop files -> make it possible that users can turn on/off previews for *.desktop files independent from text files.

BUG: 168331


 M  +1 -1      CMakeLists.txt  
 A             desktopthumbnail.desktop  


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