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 545157 - wrong/no list of "open with" applications for .cc and .cpp files
wrong/no list of "open with" applications for .cc and .cpp files
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.17.x
Other Linux
: Normal normal
: ---
Assigned To: Alexander Larsson
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-07-28 13:45 UTC by Sebastien Bacher
Modified: 2008-07-28 18:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Sebastien Bacher 2008-07-28 13:45:56 UTC
the bug has been opened on https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/239692

"Nautilus offers for .cc files only the default application gedit, but not others like it does for .c files. On my system it should show in the "open with" context menu the following text processing applications (like for .c files): Emacs 22 (client), Emacs 22 (GTK) and OpenOffice.org text processor (the names are translated from German and may thus be wrong).

I have: 8.04 with all recent patches. Completely new installation of the final version.
It happens on two machines.
For .c files everything works fine.
The same happens for .cpp, .hpp, .hh and .h files.

http://launchpadlibrarian.net/15565444/mimeTest.tar.bz2

sorry that I didn't add an example. The attachment now contains five files of the types .cc, .hpp, .hh, .c and .h. Right-clicking on the .c file shows the correct behaviour, offering gedit, emacs, emacsclient and openoffice. For the other four files nautilus only offers gedit instead. But please, do also the testing with empty files named with the given extensions. This should work as well, because I usually create a file with nautilus and open it with a double click then."
Comment 1 Sebastien Bacher 2008-07-28 13:47:50 UTC
the issue seems to be than it doesn't use sub-sub-classing informations so doesn't list text/plain associations for sources which are texts
Comment 2 Cosimo Cecchi 2008-07-28 14:02:25 UTC
Confirming on latest SVN trunk, but I think this could be an issue with shared-mime-info. CC-ing Bastien.
Comment 3 Bastien Nocera 2008-07-28 14:32:33 UTC
It's a bug in GIO.

text/x-c++src is a child mime-type of text/x-csrc which is a child mime-type of text/plain. It probably only looks at the direct parent.
Comment 4 Cosimo Cecchi 2008-07-28 15:52:06 UTC
-> glib/GIO

Thanks for the explanation, reassigning.
Comment 5 Matthias Clasen 2008-07-28 18:58:43 UTC
2008-07-28  Matthias Clasen  <mclasen@redhat.com>

        Bug 545157 – wrong/no list of "open with" applications for .cc and
        .cpp files

        * gdesktopappinfo.c (get_all_desktop_entries_for_mime_type):
        Collect all ancestors, not just direct parents. Pointed
        out by Bastien Nocera