GNOME Bugzilla – Bug 786079
general: Remove spaces from .desktop MimeType list
Last modified: 2017-08-10 07:51:18 UTC
nautilus 3.25.90 self-built on Ubuntu 17.10 Alpha $ sudo update-desktop-database Error in file "/usr/share/applications/org.gnome.Nautilus.desktop": " application/x-7z-compressed" is an invalid MIME type (" application" is an unregistered media type) Error in file "/usr/share/applications/org.gnome.Nautilus.desktop": " application/x-7z-compressed-tar" is an invalid MIME type (" application" is an unregistered media type) etc. Removing the spaces from the MimeType lines fixes this. Patch attached.
Created attachment 357315 [details] [review] general: Remove spaces from .desktop MimeType list
Review of attachment 357315 [details] [review]: Hey, Although I really don't mind having them or not, it didn't fail for neither of us (me and Ernestas), and we regenerate them in every build (see https://git.gnome.org/browse/nautilus/tree/build-aux/meson/postinstall.py), do you have a clue what could be the reason?
Try running update-desktop-database without the -q option (quiet)
Review of attachment 357315 [details] [review]: Figured it out, that script is not run under JHBuild, and it indeed raises errors otherwise.
or you can run desktop-file-validate Attachment 357315 [details] pushed as 501ece6 - general: Remove spaces from .desktop MimeType list