Gentoo Archives: gentoo-devhelp

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-devhelp@l.g.o
Subject: [gentoo-devhelp] How to install MIME types?
Date: Sun, 21 Aug 2011 18:32:13
Message-Id: j2riuc$28o$
I have an XML file that specifies MIME types for an application.  In my 
ebuild, I install it like this:

   insinto /usr/share/mime/packages
   doins someapp_mime_types.xml

I then use these calls (from fdo-mime.eclass):


However, this results in:

  * Updating desktop mime database ...
ACCESS DENIED  open_wr:      /usr/share/applications/.mimeinfo.cache.ORB20V
  * Updating shared mime info database ...
/usr/bin/update-mime-database: I don't have write permission on 
/usr/share/mime. Try rerunning me as root.

What am I doing wrong?  I *am* running "emerge" as root.


Subject Author
Re: [gentoo-devhelp] How to install MIME types? Peter Volkov <pva@g.o>