GNOME Bugzilla – Bug 335435
Respective mime icon not displayed
Last modified: 2006-06-14 13:38:10 UTC
Please describe the problem: Files such as *.py and others do not show their respective icons either on the Desktop or in nautilus icon view. Just a Text-Type-Icon is shown. Although, in list view, the icon is present. Steps to reproduce: 1. $ touch ~/Desktop/foo.py 2. Check the Desktop and then the Desktop folder in nautilus. 3. Notice the respective icon is not present in icon view in nautilus, or on the Desktop as an icon, just the normal text-file-icon. Actual results: Expected results: I would expect the correct icon to be displayed. Does this happen every time? Yes. Other information:
I'm experiencing something very similar. Html and txt files have no icon and default to the generic "unknown filetype" icon. Other text based files such as php and sh display ok. The icons display ok when I right click -> preferences, I haven't tried list view yet and I'm away from my box at the moment
same problem here
Created attachment 64965 [details] [review] proposed patch
*** Bug 340058 has been marked as a duplicate of this bug. ***
Ubuntu bug about that: https://launchpad.net/distros/ubuntu/+source/nautilus/+bug/38319 Maintainers usually use the nautilus-list to comment on patches, maybe you could sent it to the list?
Same bug on my machine, yet I have noticed it for about 3 months, I'm using ubuntu dapper, I thought I had a similar/same problem on breezy.
Looks like a good fix. I commited something similar to the proposed patch, that also handles the case when embedded_text == NULL. Thanks a lot!
still happens on dapper and the patch commited to CVS doesn't seem to make a difference
*** Bug 343612 has been marked as a duplicate of this bug. ***
How has this been declared resolved and fixed?
It works for debian testing and unstable. I don't have a machine running dapper here, but I will try to set one up next week and check what the problem is.
The patch in CVS also works for dapper. I tested it on a freshly installed version of dapper.
Created attachment 67258 [details] [review] patch for nautilus 2.14.1 For those of you using nautilus 2.14.1 I have attached a patch (extracted from CVS) since the file in CVS has undergone some more modifications. Please keep in mind to kill the running nautilus instance after installing the patched nautilus package.
Rene, is that supposed to fix the ".py are displayed as text (ie: preview) instead of using the python icon"? Because the patch makes no difference on the Ubuntu package
It fixes the problem of displaying a blank text icon instead of the correct mime-type icon when using "Icon View" and setting "Show text in icons" to "Never". When "Show text in icons" is set to "Always" the icons of ALL text files show a preview of the file contents. Since the extension ".py" denotes the mime-type "text/x-python" it behaves exactly like any other text file.