Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
+++ This bug was initially created as a clone of Bug #1564650 +++
Description of problem:
/usr/share/applications/org.gnome.font-viewer.desktop is causing errors while updating desktop database:
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)
Version-Release number of selected component (if applicable):
gnome-font-viewer-3.28.0-1.fc28.x86_64
How reproducible:
run: sudo update-desktop-database
Steps to Reproduce:
1. install gnome-font-viewer if not present
2. run update-desktop-database (as root)
Actual results:
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)
Expected results:
No errors all desktop files should have valid syntax
Additional info:
--- Additional comment from Fedora Update System on 2018-04-09 16:07:18 MDT ---
desktop-file-utils-0.23-8.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d3ff7cabfc
--- Additional comment from Fedora Update System on 2018-04-09 16:07:32 MDT ---
desktop-file-utils-0.23-8.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b931933ce3
--- Additional comment from Fedora Update System on 2018-04-09 16:07:41 MDT ---
desktop-file-utils-0.23-8.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-7b617c869f
--- Additional comment from Milan Zink on 2018-04-10 09:03:09 MDT ---
desktop-file-utils-0.23-8 works fine
bash-4.4$ sudo update-desktop-database
bash-4.4$
No errors
bash-4.4$ grep MimeType /usr/share/applications/org.gnome.font-viewer.desktop
MimeType=application/x-font-ttf;application/x-font-pcf;application/x-font-type1;application/x-font-otf;font/ttf;font/otf;
--- Additional comment from Adam Williamson on 2018-04-10 11:50:01 MDT ---
hadess: d'oh, dunno why I typed the wrong thing in the component box. :P thanks!
--- Additional comment from Rex Dieter on 2018-04-10 12:22:16 MDT ---
--- Additional comment from Fedora Update System on 2018-04-10 14:49:42 MDT ---
desktop-file-utils-0.23-8.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b931933ce3
--- Additional comment from Fedora Update System on 2018-04-10 15:15:09 MDT ---
desktop-file-utils-0.23-8.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-7b617c869f
--- Additional comment from Fedora Update System on 2018-04-10 16:51:29 MDT ---
desktop-file-utils-0.23-8.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-d3ff7cabfc
--- Additional comment from Fedora Update System on 2018-04-14 20:36:42 MDT ---
desktop-file-utils-0.23-8.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
--- Additional comment from Fedora Update System on 2018-04-15 08:45:26 MDT ---
desktop-file-utils-0.23-8.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
--- Additional comment from Fedora Update System on 2018-04-17 19:03:34 MDT ---
desktop-file-utils-0.23-8.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
TEST SETUP 1
Distro: RHEL 7.6
Component version:
desktop-file-utils-0.23-1.el7
shared-mime-info-1.8-4.el7
TEST PROCEDURE 1
1. Install gnome-font-viewer
2. Update the desktop database when logged as root:
# update-desktop-database
The bug appears.
TEST SETUP 2
Distro: RHEL 7.7
Component version:
desktop-file-utils-0.23-2.el7
shared-mime-info-1.8-4.el7
TEST PROCEDURE 2
1. Download and install Brew build shared-mime-info-1.8-5.el7:
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=948974
2. Repeat the previous testing procedure.
The bug does NOT appear.
RESULT
Upgrading component: desktop-file-utils
from: 0.23-1.el7
to: 0.23-2.el7
Upgrading component: shared-mime-info
from: 1.8-4.el7
to: 1.8-5.el7
have fixed the bug.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2020:1021