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 319981 - Can't open 'index.theme' file
Can't open 'index.theme' file
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.28.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-27 13:34 UTC by Joachim Noreiko
Modified: 2012-03-26 12:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28



Description Joachim Noreiko 2005-10-27 13:34:28 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.
Comment 1 Sebastien Bacher 2005-11-13 13:40:31 UTC
Thanks for your bug. How do you open the file? By clicking on it? What version
of ubuntu/nautilus do you use?
Comment 2 Joachim Noreiko 2005-11-13 17:42:27 UTC
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.
Comment 3 Sebastien Bacher 2005-11-13 17:57:55 UTC
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?

Comment 4 Christian Neumair 2005-11-17 16:08:17 UTC
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.
Comment 5 Sebastien Bacher 2006-04-20 09:09:57 UTC
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
Comment 6 vexorian 2007-07-27 16:13:28 UTC
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.
Comment 7 Pacho Ramos 2008-01-11 20:36:06 UTC
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
Comment 8 Cosimo Cecchi 2008-02-26 10:25:30 UTC
This is still valid in 2.21.92, despite MIME handling having been rewritten.
Comment 9 adys.wh 2008-05-18 16:53:48 UTC
Confirmed in 2.22 - Annoying since it stops from editing themes easily. Any news on it?
Comment 10 Christian Gonzalez 2008-06-24 08:54:59 UTC
Isn't it possible to do it with an additional service menu of nautilus?
Comment 11 erik.southworth 2009-12-17 22:24:57 UTC
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>.
Comment 12 nodiscc 2011-07-26 21:06:41 UTC
Still present in Nautilus 2.30.1, Debian Testing. Maybe changing the .theme files mimetype for something like text/plain would be useful...
Comment 13 Vadim Rutkovsky 2012-03-07 12:32:37 UTC
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)
Comment 14 nodiscc 2012-03-07 12:40:00 UTC
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.
Comment 15 Cosimo Cecchi 2012-03-08 00:31:38 UTC
I finally fixed this in git master.
Comment 16 Sebastien Bacher 2012-03-26 12:30:52 UTC
https://bugs.launchpad.net/nautilus/+bug/964186 indicates that the fix for this bug broke "open with" for directories