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 619303 - invalid MIME type in /usr/share/applications/gnumeric.desktop
invalid MIME type in /usr/share/applications/gnumeric.desktop
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
1.10.x
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
: 729319 766471 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-05-21 15:44 UTC by Laurent Bonnaud
Modified: 2016-05-15 16:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Laurent Bonnaud 2010-05-21 15:44:05 UTC
Hi,

here is the problem:

# update-desktop-database
[...]
Error in file "/usr/share/applications/gnumeric.desktop": "zz-application/zz-winassoc-xls" is an invalid MIME type ("zz-application" is an unregistered media type)
Comment 1 Laurent Bonnaud 2010-05-21 15:46:56 UTC
Also reported as:

https://bugs.launchpad.net/gnumeric/+bug/570836
Comment 2 Morten Welinder 2010-05-21 17:03:26 UTC
What makes you think Gnumeric is wrong as opposed to the checker being
wrong?
Comment 4 Jean Bréfort 2010-05-22 05:40:59 UTC
There are other not registered media types. Chemists currently use x-chemical. update-desktop-database might emit a warning, not an error. I thing the bug, if any, is there, not in gnumeric.desktop.
Comment 5 Morten Welinder 2010-05-23 02:21:13 UTC
See also bug 129833 and bug 152159.
Comment 6 Andreas J. Guelzow 2010-06-07 14:09:08 UTC
We really have to specify the mime types that are in de-facto use whether they are "legal" or not.

so ->WONTFIX
Comment 7 Vincent Untz 2011-10-11 12:49:58 UTC
Actually I think you don't need to specify those mime types: the right thing is to have them registered as aliases to the real valid mime types in shared-mime-info, and then it will all just work.

See https://bugs.freedesktop.org/show_bug.cgi?id=41286#c6
Comment 8 Andreas J. Guelzow 2011-10-11 13:57:36 UTC
I understand that the mime-types in question have just been added to the shared-mime-info database as aliases.

So there will be quite some time until this will in fact be in all distributions. (I have reason to assume that more people compile Gnumeric from git than install the updated shared-mime-info database separate from a distribution update.)

So I don't think we should drop these mime-types until we see them in the recent distributions and we can test that using those aliases in shared-mime-info in fact works.
Comment 9 Vincent Untz 2011-10-11 15:37:56 UTC
(In reply to comment #8)
> I understand that the mime-types in question have just been added to the
> shared-mime-info database as aliases.

Actually, I don't think they've be committed yet :-) Hopefully, they'll be in soon.

> So there will be quite some time until this will in fact be in all
> distributions. (I have reason to assume that more people compile Gnumeric from
> git than install the updated shared-mime-info database separate from a
> distribution update.)
> 
> So I don't think we should drop these mime-types until we see them in the
> recent distributions and we can test that using those aliases in
> shared-mime-info in fact works.

Right, it makes sense to wait a bit before removing them.
Comment 10 Sérgio Cipolla 2012-04-01 12:13:49 UTC
This has been fixed in update-desktop-database
https://bugs.freedesktop.org/show_bug.cgi?id=41286
and recommends that the MIME type be changed:

# update-desktop-database 
Warning in file "/usr/share/applications/fedora-gnumeric.desktop": usage of MIME type "zz-application/zz-winassoc-xls" is discouraged ("zz-application/zz-winassoc-xls" should be replaced with "application/vnd.ms-excel")
Comment 11 Morten Welinder 2012-04-01 12:47:34 UTC
No, it should not be replaced.

Maybe we should have "application/vnd.ms-excel" too, if we do not already
have it, but that is a different story.

See http://filetonic.com/blog/2008/03/20/what-is-file-extension-xls/
or http://dotwhat.net/xls/24/

"zz-application/zz-winassoc-xls" exists.  Reality wins over the spec.
Comment 12 Andreas J. Guelzow 2012-04-01 17:16:43 UTC
Morten, I think the point is that in the freedesktop database (and desktop-file-utils), "zz-application/zz-winassoc-xls" is now (supposedly) listed as an alias for application/vnd.ms-excel. So once this has landed in the various OS distribution it should not need to be specified any longer in Gnumeric.

But any change in Gnumeric cannot happen until those change are in fact included in shipping distributions and we have tested that the effect is in fact correct.
Comment 13 Pacho Ramos 2013-07-20 09:20:33 UTC
We still get this with 0.21 (and changes in git look to not change this):
       /usr/share/applications/gnumeric.desktop: warning: value "application/x-gnumeric;application/vnd.ms-excel;application/excel;application/msexcel;application/x-excel;application/x-ms-excel;application/x-msexcel;application/x-xls;application/xls;application/x-dos_ms_excel;zz-application/zz-winassoc-xls;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/tab-separated-values;text/csv;text/x-csv;text/spreadsheet;text/tab-separated-values;application/vnd.lotus-1-2-3;application/x-123;application/vnd.sun.xml.calc;application/vnd.sun.xml.calc.template;application/x-applix-spreadsheet;application/x-mps;application/x-oleo;application/x-planperfect;application/x-quattropro;application/x-sc;application/x-sylk;application/x-dbase;application/x-dbf;application/x-xbase;" for key "MimeType" in group "Desktop Entry" contains value "zz-application/zz-winassoc-xls" which is a MIME type that should probably not be used: "zz-application/zz-winassoc-xls" should be replaced with "application/vnd.ms-excel"
Comment 14 Morten Welinder 2013-07-20 14:29:17 UTC
You will keep getting that until update-desktop-database (not Gnumeric)
gets fixed.  That's where the problem is.
Comment 15 Pacho Ramos 2013-07-20 14:58:23 UTC
Was it reported to update-desktop-database upstream?
Comment 17 Morten Welinder 2014-05-01 13:30:46 UTC
*** Bug 729319 has been marked as a duplicate of this bug. ***
Comment 18 Hans Petter Jansson 2016-05-11 22:33:28 UTC
The shared-mime-info aliases have been around for a couple of years now, and are likely widely deployed. Do you think it'd be possible for you to switch over to the preferred MIME types, or do you want to give it more time?

You should be able to see the aliases using e.g.

grep ^zz-application /usr/share/mime/aliases
Comment 19 Morten Welinder 2016-05-11 22:44:46 UTC
I have that alias now.  Andreas?

Just to summarize: you want to eliminate the "zz-application/zz-winassoc-xls"
entry.  Correct?
Comment 20 Andreas J. Guelzow 2016-05-12 03:43:43 UTC
$ grep ^zz-application /usr/share/mime/aliases
zz-application/zz-winassoc-123 application/vnd.lotus-1-2-3
zz-application/zz-winassoc-cab application/vnd.ms-cab-compressed
zz-application/zz-winassoc-cdr application/vnd.corel-draw
zz-application/zz-winassoc-doc application/msword
zz-application/zz-winassoc-hlp application/winhlp
zz-application/zz-winassoc-mdb application/vnd.ms-access
zz-application/zz-winassoc-uu text/x-uuencode
zz-application/zz-winassoc-xls application/vnd.ms-excel

But I still don't understand why it needs to be replaced.
Comment 21 Hans Petter Jansson 2016-05-12 16:46:42 UTC
(In reply to Morten Welinder from comment #19)
> Just to summarize: you want to eliminate the "zz-application/zz-winassoc-xls"
> entry.  Correct?

Yeah.

(In reply to Andreas J. Guelzow from comment #20)
> But I still don't understand why it needs to be replaced.

The overall idea is to keep desktop files consistent across applications and free from cruft. Preferring official IANA Media Types, as far as possible, is a part of that goal.

I realize this is a very minor issue in the context of Gnumeric -- but in the context of a desktop install with many applications and multiple DEs, the issues tend to add up.
Comment 22 Morten Welinder 2016-05-12 18:12:03 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.
Comment 23 Hans Petter Jansson 2016-05-12 18:39:04 UTC
Nice, thanks!
Comment 24 Morten Welinder 2016-05-15 16:50:52 UTC
*** Bug 766471 has been marked as a duplicate of this bug. ***