Appropriate place for cached data is /var/cache/, We have database cache in /var/cache/mime.
Created attachment 515 [details] [review] Quick hack to do it.
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 :-(
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...
Matthias, what do you think of this request?
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.
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.