After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 335435 - Respective mime icon not displayed
Respective mime icon not displayed
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Views: Icon View
2.14.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 340058 343612 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-03-21 23:42 UTC by Paul
Modified: 2006-06-14 13:38 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
proposed patch (529 bytes, patch)
2006-05-07 17:42 UTC, Rene Hausleitner
none Details | Review
patch for nautilus 2.14.1 (849 bytes, patch)
2006-06-13 13:56 UTC, Rene Hausleitner
none Details | Review

Description Paul 2006-03-21 23:42:57 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:
Comment 1 omar 2006-04-20 11:35:47 UTC
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
Comment 2 Giacomo Perale 2006-04-25 13:58:00 UTC
same problem here
Comment 3 Rene Hausleitner 2006-05-07 17:42:14 UTC
Created attachment 64965 [details] [review]
proposed patch
Comment 4 Olav Vitters 2006-05-07 21:27:39 UTC
*** Bug 340058 has been marked as a duplicate of this bug. ***
Comment 5 Sebastien Bacher 2006-05-08 22:55:05 UTC
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?
Comment 6 pianoboy3333 2006-05-09 01:11:54 UTC
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.
Comment 7 Alexander Larsson 2006-05-16 12:30:46 UTC
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!
Comment 8 Sebastien Bacher 2006-05-29 23:15:34 UTC
still happens on dapper and the patch commited to CVS doesn't seem to make a difference
Comment 9 Sebastien Bacher 2006-06-01 20:21:51 UTC
*** Bug 343612 has been marked as a duplicate of this bug. ***
Comment 10 pianoboy3333 2006-06-01 23:51:47 UTC
How has this been declared resolved and fixed?
Comment 11 Rene Hausleitner 2006-06-03 19:59:24 UTC
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.
Comment 12 Rene Hausleitner 2006-06-13 13:49:12 UTC
The patch in CVS also works for dapper.
I tested it on a freshly installed version of dapper.
Comment 13 Rene Hausleitner 2006-06-13 13:56:15 UTC
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.
Comment 14 Sebastien Bacher 2006-06-14 10:37:17 UTC
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
Comment 15 Rene Hausleitner 2006-06-14 13:38:10 UTC
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.