Bug 301226 - Unhelpful error message when /usr/share/mime/mime.cache is missing
Summary: Unhelpful error message when /usr/share/mime/mime.cache is missing
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdecore (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-05 15:58 UTC by Ian Pilcher
Modified: 2018-11-09 16:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.