1 |
On 08/25/2011 10:28 AM, Peter Volkov wrote: |
2 |
> В Вск, 21/08/2011 в 21:32 +0300, Nikos Chantziaras пишет: |
3 |
>> I have an XML file that specifies MIME types for an application. In my |
4 |
>> ebuild, I install it like this: |
5 |
>> |
6 |
>> insinto /usr/share/mime/packages |
7 |
>> doins someapp_mime_types.xml |
8 |
>> |
9 |
>> I then use these calls (from fdo-mime.eclass): |
10 |
>> |
11 |
>> fdo-mime_desktop_database_update |
12 |
>> fdo-mime_mime_database_update |
13 |
>> |
14 |
>> However, this results in: |
15 |
>> |
16 |
>> * Updating desktop mime database ... |
17 |
>> ACCESS DENIED open_wr: /usr/share/applications/.mimeinfo.cache.ORB20V |
18 |
>> * Updating shared mime info database ... |
19 |
>> /usr/bin/update-mime-database: I don't have write permission on |
20 |
>> /usr/share/mime. Try rerunning me as root. |
21 |
>> |
22 |
>> What am I doing wrong? I *am* running "emerge" as root. |
23 |
> |
24 |
> These functions should be executed in pkg_postinst() and pkg_postrm(). |
25 |
> BTW, you don't need to run fdo-mime_desktop_database_update for mime |
26 |
> files. |
27 |
|
28 |
Thanks, that works. |
29 |
|
30 |
I running fdo-mime_desktop_database_update needed when installing a |
31 |
desktop file with make_desktop_entry? |