Bug 915

Summary: allow to put database cache in other place than /usr/share/mime
Product: shared-mime-info Reporter: aris
Component: generalAssignee: Jonathan Blandford <jrb>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: medium CC: bugzilla, mclasen
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Quick hack to do it.

Description aris 2004-07-22 16:17:48 UTC
Appropriate place for cached data is /var/cache/, We have database cache in
/var/cache/mime.
Comment 1 aris 2004-07-22 16:20:18 UTC
Created attachment 515 [details] [review]
Quick hack to do it.
Comment 2 Arioch 2005-03-12 10:45:16 UTC
I'd comment that AltLinux version introduced the 2nd argument to update-mime-
database and made it required (it is intended to be /var/cache/mime)!

I think for the sake of compatibility it is to be optional until freedesktop,org 
will approve it is required and put it into their downloads.
Let there will be warning if it is omitted, but the program is to work anyhow. 
But currently it breaks any scripts made for other u-m-d versions :-(
Comment 3 Thomas Leonard 2005-03-12 11:46:37 UTC
Perhaps you could make some symlinks instead, eg:

/usr/share/mime -> /var/cache/mime
/var/cache/mime/packages -> /use/share/mime-packages

That would get the same effect, without breaking other applications.

However, although it's a cache, it's only updated at install time, not runtime.
So it's more like Python .pyc files, or the library symlinks like:

/usr/lib/libpng12.so -> libpng.so.0

Do you also put these under /var/cache? It seems strange...
Comment 4 Bastien Nocera 2006-07-09 03:12:48 UTC
Matthias, what do you think of this request?
Comment 5 Matthias Clasen 2006-07-09 06:23:55 UTC
I agree with Thomas that there is no particularly convincing reason why
intall time caches like the mime cache or the icon caches need to live
under /var/cache. If you can install something under /usr/share, you
can also update the caches there...

If altlinux is serious about this, they should discuss changes to the
mime spec, since it explicitly specifies that the cache files are
created in the directory specified as the first argument to
update-mime-database.
Comment 6 Bastien Nocera 2006-07-10 01:59:49 UTC
As per Matthias' comments.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.