* [gentoo-devhelp] How to install MIME types?
@ 2011-08-21 18:32 Nikos Chantziaras
2011-08-25 7:28 ` Peter Volkov
0 siblings, 1 reply; 5+ messages in thread
From: Nikos Chantziaras @ 2011-08-21 18:32 UTC (permalink / raw
To: gentoo-devhelp
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):
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-devhelp] How to install MIME types?
2011-08-21 18:32 [gentoo-devhelp] How to install MIME types? Nikos Chantziaras
@ 2011-08-25 7:28 ` Peter Volkov
2011-08-25 10:48 ` [gentoo-devhelp] " Nikos Chantziaras
0 siblings, 1 reply; 5+ messages in thread
From: Peter Volkov @ 2011-08-25 7:28 UTC (permalink / raw
To: gentoo-devhelp
В Вск, 21/08/2011 в 21:32 +0300, Nikos Chantziaras пишет:
> 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):
>
> fdo-mime_desktop_database_update
> fdo-mime_mime_database_update
>
> 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.
These functions should be executed in pkg_postinst() and pkg_postrm().
BTW, you don't need to run fdo-mime_desktop_database_update for mime
files.
--
Peter.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-devhelp] Re: How to install MIME types?
2011-08-25 7:28 ` Peter Volkov
@ 2011-08-25 10:48 ` Nikos Chantziaras
2011-08-25 12:32 ` Peter Volkov
0 siblings, 1 reply; 5+ messages in thread
From: Nikos Chantziaras @ 2011-08-25 10:48 UTC (permalink / raw
To: gentoo-devhelp
On 08/25/2011 10:28 AM, Peter Volkov wrote:
> В Вск, 21/08/2011 в 21:32 +0300, Nikos Chantziaras пишет:
>> 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):
>>
>> fdo-mime_desktop_database_update
>> fdo-mime_mime_database_update
>>
>> 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.
>
> These functions should be executed in pkg_postinst() and pkg_postrm().
> BTW, you don't need to run fdo-mime_desktop_database_update for mime
> files.
Thanks, that works.
I running fdo-mime_desktop_database_update needed when installing a
desktop file with make_desktop_entry?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-devhelp] Re: How to install MIME types?
2011-08-25 10:48 ` [gentoo-devhelp] " Nikos Chantziaras
@ 2011-08-25 12:32 ` Peter Volkov
2011-08-25 12:44 ` Nikos Chantziaras
0 siblings, 1 reply; 5+ messages in thread
From: Peter Volkov @ 2011-08-25 12:32 UTC (permalink / raw
To: gentoo-devhelp
В Чтв, 25/08/2011 в 13:48 +0300, Nikos Chantziaras пишет:
> I running fdo-mime_desktop_database_update needed when installing a
> desktop file with make_desktop_entry?
I think no. fdo-mime_desktop_database_update() runs
update-desktop-database that builds cache database of MIME types handled
by desktop files. make_desktop_entry does not put "MimeType=..."
into .desktop file and thus there is no need to run
fdo-mime_desktop_database_update.
--
Peter.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-devhelp] Re: How to install MIME types?
2011-08-25 12:32 ` Peter Volkov
@ 2011-08-25 12:44 ` Nikos Chantziaras
0 siblings, 0 replies; 5+ messages in thread
From: Nikos Chantziaras @ 2011-08-25 12:44 UTC (permalink / raw
To: gentoo-devhelp
On 08/25/2011 03:32 PM, Peter Volkov wrote:
> В Чтв, 25/08/2011 в 13:48 +0300, Nikos Chantziaras пишет:
>> I running fdo-mime_desktop_database_update needed when installing a
>> desktop file with make_desktop_entry?
>
> I think no. fdo-mime_desktop_database_update() runs
> update-desktop-database that builds cache database of MIME types handled
> by desktop files. make_desktop_entry does not put "MimeType=..."
> into .desktop file and thus there is no need to run
> fdo-mime_desktop_database_update.
In my case it does though. The last parameter of make_desktop_entry is
a printf-formatted string that is put verbatim in the desktop file.
There I insert a MimeType that registers the application as a handler
for the previously installed MIME type (the xml file.)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-08-25 12:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-21 18:32 [gentoo-devhelp] How to install MIME types? Nikos Chantziaras
2011-08-25 7:28 ` Peter Volkov
2011-08-25 10:48 ` [gentoo-devhelp] " Nikos Chantziaras
2011-08-25 12:32 ` Peter Volkov
2011-08-25 12:44 ` Nikos Chantziaras
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox