GNOME Bugzilla – Bug 319981
Can't open 'index.theme' file
Last modified: 2012-03-26 12:30:52 UTC
Distribution/Version: Ubuntu Opening an 'index.theme' file within a theme folder gives this message: Couldn't display "/usr/share/themes/Human/index.theme". The location is not a folder. The file is a plain text file and should open in gedit.
Thanks for your bug. How do you open the file? By clicking on it? What version of ubuntu/nautilus do you use?
The error occurs whether I double-click or do right-click -> open. It is the type of file rather than the location: I have copied the index.theme file to the desktop and I get the same error. I am using Ubuntu 5.10 Breezy, and Nautilus 2.12.1.
The issue is the mime detection on this file, the file starts as a desktop file (application/x-desktop). According to the freedesktop definitions it's also a text file though: <mime-type type="application/x-desktop"> <sub-class-of type="text/plain"/> So it should be opened by a text editor ... Manny, any idea on this?
This file should be recognized as "application/x-theme", and it is, at least for me. However, I'm on shared-mime-info HEAD. Marking this as NOTGNOME. We'll hopefully do a shared-mime-info release within the next month or so.
Christian, that's still happening with new shared-mime-information. The mimetype is correctly detected but it's a subclass of "application/x-desktop" and nautilus seems to special case that since there is no "open with" choice to the menu by example Ubuntu bug about that: https://launchpad.net/distros/ubuntu/+source/nautilus/+bug/38434
I must say that I can confirm this bug. It happens on any .theme file, specially noticeable when I want to edit an icon theme.
This bug is still valid, and there is no way to modify app to be used from properties Tested on gentoo with gnome-2.20
This is still valid in 2.21.92, despite MIME handling having been rewritten.
Confirmed in 2.22 - Annoying since it stops from editing themes easily. Any news on it?
Isn't it possible to do it with an additional service menu of nautilus?
Confirmed with Nautilus 2.28.1. bpython uses name.theme files and brings this issue to awareness. See also: <http://bitbucket.org/bobf/bpython/issue/75/conflict-with-theme-in-nautilus-file>.
Still present in Nautilus 2.30.1, Debian Testing. Maybe changing the .theme files mimetype for something like text/plain would be useful...
Message is not displayed in Nautilus 3.0, but 'Open With..' dialog is not available, so the file cannot be opened using editor (e.g. gedit)
This problem persists in Nautilus 3.2.1-2+b1 in Debian Testing. Selecting "Open" on that file only causes the current nautilus window to flicker 1 time. No "open with" dialog in the properties dialog for these files. File mimetype is seen as application/x-theme.
I finally fixed this in git master.
https://bugs.launchpad.net/nautilus/+bug/964186 indicates that the fix for this bug broke "open with" for directories