Nautilus uses wrong icons for text files

Bug #38319 reported by Alexander Kirillov
48
Affects Status Importance Assigned to Milestone
Nautilus
Fix Released
Medium
nautilus (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

After disabling option "text files->show text in icons" in Nautilus, it shows "blank page" icon for text/* files.

Expected result: it should show the icon specified by icon theme.

See screenshot, which shows the properties dialog (showing icon specified by icon theme) and teh actual icon used for a file on desktop.

Revision history for this message
Alexander Kirillov (shurik179) wrote : screenshot

Screenshot showing wrong icon being used

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your bug report. That works with current Dapper - can you check in Dapper and report back?

Changed in nautilus:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Alexander Kirillov (shurik179) wrote :

This is dapper - updated as of today.

Changed in nautilus:
status: Needs Info → Unconfirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Which icon-theme do you use?

Changed in nautilus:
status: Unconfirmed → Needs Info
Revision history for this message
Alexander Kirillov (shurik179) wrote :

I am using Tangerine - but I also tried Human, GNOME, Lush... In all cases, I get the same problem: icon used for text/* types is the "blank page" icon, e.g. for text/x-tex files in for gnome theme, I get gnome-fs-regular icon, instead of "gnome-mime-applicationx-tex".

Changed in nautilus:
status: Needs Info → Unconfirmed
Revision history for this message
Daniel Holbach (dholbach) wrote : screenshot with Human

screenshot with Human icon theme - I wonder what goes wrong.

Revision history for this message
Alexander Kirillov (shurik179) wrote :

As I said, I in Nautilus options I had disabled text preview in icons: set
Nautilus preferences->Preview->Text files->Show text in icons" to "Never" and try again

Revision history for this message
Simon Law (sfllaw) wrote :

Confirmed that the icon goes blank.

Changed in nautilus:
status: Unconfirmed → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

I've forwarded the issue upstream: http://bugzilla.gnome.org/show_bug.cgi?id=340058

Revision history for this message
pianoboy3333 (pianoboy3333) wrote :

Me and _jason worked on this for a bit when we noticed we didn't have python icons, this seems to be a bug with the mime database, since icons for *.c files, *.css files and others are missing. We realized we could make an overides xml file, which you can copy to /usr/share/mime/packages/ the one he made can be found at http://piano.juicemedia.tv/Overrides.xml

Revision history for this message
Sebastien Bacher (seb128) wrote :

the python icon issue is a different one, the correct mimetype for python is text/x-python and if you go to the properties of a .py you can notice it's correctly detectted, your Overrides is a wrong workaround

Changed in nautilus:
assignee: desktop-bugs → rpgman
Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

Don't play with bugs!

Changed in nautilus:
assignee: rpgman → desktop-bugs
Revision history for this message
Phorque (phorque) wrote :

I noticed the same bug with C/C++ source and header files

Revision history for this message
Mario Lacunza (mario-lacunza) wrote :

Hello,

I report more mime types wrong in this post:
https://launchpad.net/distros/ubuntu/+source/nautilus/+bug/48274

with some screenshots...

Any idea??

Thanks for your support!!

Revision history for this message
Rene Hausleitner (rene-hausleitner) wrote : patch

The attached patch is extracted from nautilus cvs.

Please keep in mind to kill the running nautilus instance after installing the
patched nautilus package.

Revision history for this message
Phorque (phorque) wrote :

About applying the patch:

We add/remove the appropriate lines in the C source file, restart Nautilus and then we're good to go, or does this require a re-compile?

I don't get it. Isn't this kind of dodgy when we're using pre-compiled binaries from deb packages?

Revision history for this message
Alexander Kirillov (shurik179) wrote :

Phorque: this patch is for developers information. Users like you and me better wait until developers test the patch, approve it, after which they will put updated packages in the repositories. Then you can get it using update-manager.

Of course, experienced users can also test the patch themselves. Judging by your question, you are not an experienced user - so better leave this to developers.

Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

In feisty I get a text (non-blank) icon for all text/* mimetypes. Is this correct behavious, or should .tex, .txt, .c, .py, etc all have different icons?

Revision history for this message
gnudoc (gnudoc) wrote :

Henrik: It seems this is correct behaviour, assuming that the nautilus window is showing the same icon as the properties dialog, as in my attached screenshot.

Revision history for this message
gnudoc (gnudoc) wrote :

Correct behaviour for this would apparently be for the nautilus window to show the same icon as in the properties dialog. Current gutsy (1/10/07) does this (nautilus version 1:2.20.0-0ubuntu3) and the bug was fixed upstream for nautilus version 2.14.

Changed in nautilus:
status: Confirmed → Fix Released
Changed in nautilus:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.