FS#57996 - [desktop-file-utils] invalid MIME type in .desktop file

Attached to Project: Arch Linux
Opened by Juan Simón (j1simon) - Tuesday, 27 March 2018, 20:21 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 18 April 2018, 09:16 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

$ sudo update-desktop-database
Error in file "/usr/share/applications/org.gnome.font-viewer.desktop": "font/ttf" is an invalid MIME type ("font" is an unregistered media type)
Error in file "/usr/share/applications/org.gnome.font-viewer.desktop": "font/otf" is an invalid MIME type ("font" is an unregistered media type)

gnome-font-viewer v3.28.0-1
This task depends upon

Closed by  Jan de Groot (JGC)
Wednesday, 18 April 2018, 09:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  0.23+4+g92af410-1
Comment by Jan de Groot (JGC) - Tuesday, 27 March 2018, 21:16 GMT
what version of shared-mime-info? These types are valid and included in the 1.9 release.
Comment by Juan Simón (j1simon) - Wednesday, 28 March 2018, 05:49 GMT
shared-mime-info 1.9-1
Comment by Jan de Groot (JGC) - Wednesday, 28 March 2018, 07:51 GMT
Checked desktop-file-utils, it doesn't use information from shared-mime-info to validate mimetypes, it has a builtin list.
The "solution" that Fedora applied is adding "&>/dev/null || :" to the update-desktop-database calls they use in their hook.

Comment by Juan Simón (j1simon) - Wednesday, 28 March 2018, 13:36 GMT
Perhaps it would be better to report the error to GNOME, no? What application do I report it to: gnome-font-viewer or desktop-file-utils?
Comment by Jan de Groot (JGC) - Wednesday, 28 March 2018, 13:40 GMT
desktop-file-utils is the one that gives an invalid warning. This is not a GNOME bug.
Comment by Juan Simón (j1simon) - Wednesday, 28 March 2018, 13:46 GMT Comment by Juan Simón (j1simon) - Tuesday, 10 April 2018, 13:21 GMT
Resolved in desktop-file-utils git version: https://bugs.freedesktop.org/show_bug.cgi?id=105785#c3

Loading...