Bug 301226

Summary: Unhelpful error message when /usr/share/mime/mime.cache is missing
Product: [Unmaintained] kdelibs Reporter: Ian Pilcher <arequipeno>
Component: kdecoreAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ian Pilcher 2012-06-05 15:58:21 UTC
If /usr/share/mime/mime.cache is missing, KDE displays a very unhelpful error message on startup:

No mime types installed.  Check that shared-mime-info is installed, and that XDG_DATA_DIRS is not set, or includes /usr/share.

In my case, shared-mime-info was installed, and XDG_DATA_DIRS did include /usr/share.  It took quite a lot of banging around to figure out that I needed to recreate /usr/share/mime/mime.cache with:

  sudo update-mime-database /usr/share/mime

Given that the actual problem is the missing cache file, shouldn't the error message mention it?
Comment 1 Andrew Crouthamel 2018-11-09 01:03:09 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Ian Pilcher 2018-11-09 16:39:43 UTC
(In reply to Andrew Crouthamel from comment #1)
> This bug has been stagnant for a long time. Could you help us out and
> re-test if the bug is valid in the latest version? I am setting the status
> to NEEDSINFO pending your response, please change the Status back to
> REPORTED when you respond.

Tested with Plasma 5.13.5 on Fedora 29.  No error message when /usr/share/mime/mime.cache is not present.  Closing.