This bug was fixed in the package desktop-file-utils -
0.23-1ubuntu3.18.04.2
---------------
desktop-file-utils (0.23-1ubuntu3.18.04.2) bionic; urgency=medium
* debian/patches/add-font-as-valid-media-type.patch:
- backport debian change to fix update-desktop-error with
gnome-font-viewer 3.28 (LP: #1768271)
-- Sebastien Bacher <[email protected]> Tue, 06 Nov 2018 16:31:37
+0100
** Changed in: desktop-file-utils (Ubuntu Bionic)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to desktop-file-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1768271
Title:
sudo update-desktop-database results in "font/ttf" is an invalid MIME
type ("font" is an unregistered media type)
Status in desktop-file-utils package in Ubuntu:
Fix Released
Status in desktop-file-utils source package in Bionic:
Fix Released
Status in desktop-file-utils source package in Cosmic:
Fix Released
Bug description:
* Impact
The "update-desktop-database" command outputs some "invalid MIME type"
warnings
* Test case
- install gnome-font-viewer if it's not installed
- $ sudo update-desktop-database
you should not get warnings like those
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)
* Regression potential
Check that fonts files can still be opened from nautilus and preview
(browse e.g /usr/share/fonts/type1/gsfonts in nautilus and open a file
from there)
------------------------------------------------------
I think this is the same bug as this one:
https://bugzilla.redhat.com/show_bug.cgi?id=1564650
Other info:
1.
$ lsb_release -rd
Description: Ubuntu 18.04 LTS
Release: 18.04
2.
$ apt-cache policy desktop-file-utils
desktop-file-utils:
Installed: 0.23-1ubuntu3
Candidate: 0.23-1ubuntu3
Version table:
*** 0.23-1ubuntu3 500
500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
3. Expected `sudo update-desktop-database` to not return an error
4. Error regarding invalid MIME type (see above) was returned.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: desktop-file-utils 0.23-1ubuntu3
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue May 1 11:11:05 2018
InstallationDate: Installed on 2018-04-29 (1 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: desktop-file-utils
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/desktop-file-utils/+bug/1768271/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp