Gentoo Archives: gentoo-devhelp

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-devhelp@l.g.o
Subject: [gentoo-devhelp] Re: How to install MIME types?
Date: Thu, 25 Aug 2011 12:44:13
Message-Id: j35g1p$12v$
In Reply to: Re: [gentoo-devhelp] Re: How to install MIME types? by Peter Volkov
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.)