Gentoo Archives: gentoo-devhelp

From: Peter Volkov <pva@g.o>
To: gentoo-devhelp@l.g.o
Subject: Re: [gentoo-devhelp] How to install MIME types?
Date: Thu, 25 Aug 2011 07:29:14
Message-Id: 1314257285.21876.18.camel@tablet
In Reply to: [gentoo-devhelp] How to install MIME types? by Nikos Chantziaras
1 В Вск, 21/08/2011 в 21:32 +0300, Nikos Chantziaras пишет:
2 > I have an XML file that specifies MIME types for an application. In my
3 > ebuild, I install it like this:
4 >
5 > insinto /usr/share/mime/packages
6 > doins someapp_mime_types.xml
7 >
8 > I then use these calls (from fdo-mime.eclass):
9 >
10 > fdo-mime_desktop_database_update
11 > fdo-mime_mime_database_update
12 >
13 > However, this results in:
14 >
15 > * Updating desktop mime database ...
16 > ACCESS DENIED open_wr: /usr/share/applications/.mimeinfo.cache.ORB20V
17 > * Updating shared mime info database ...
18 > /usr/bin/update-mime-database: I don't have write permission on
19 > /usr/share/mime. Try rerunning me as root.
20 >
21 > What am I doing wrong? I *am* running "emerge" as root.
22
23 These functions should be executed in pkg_postinst() and pkg_postrm().
24 BTW, you don't need to run fdo-mime_desktop_database_update for mime
25 files.
26
27 --
28 Peter.

Replies

Subject Author
[gentoo-devhelp] Re: How to install MIME types? Nikos Chantziaras <realnc@×××××.de>