From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QwXTo-00025q-18 for garchives@archives.gentoo.org; Thu, 25 Aug 2011 10:48:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CB3621C0BE; Thu, 25 Aug 2011 10:47:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EF36D21C0BE for ; Thu, 25 Aug 2011 10:47:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 569B41B400F for ; Thu, 25 Aug 2011 10:47:56 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Score: -4.959 X-Spam-Level: X-Spam-Status: No, score=-4.959 required=5.5 tests=[AWL=1.640, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rjKsnrLJSKN4 for ; Thu, 25 Aug 2011 10:47:49 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id C80B71B4017 for ; Thu, 25 Aug 2011 10:47:46 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QwXTM-0001Xx-JR for gentoo-devhelp@gentoo.org; Thu, 25 Aug 2011 12:47:44 +0200 Received: from athedsl-375996.home.otenet.gr ([79.131.20.186]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Aug 2011 12:47:44 +0200 Received: from realnc by athedsl-375996.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Aug 2011 12:47:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-devhelp@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-devhelp] Re: How to install MIME types? Date: Thu, 25 Aug 2011 13:48:02 +0300 Organization: Lucas Barks Message-ID: References: <1314257285.21876.18.camel@tablet> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Development-related help X-BeenThere: gentoo-devhelp@gentoo.org X-BeenThere: gentoo-devhelp@lists.gentoo.org Reply-To: gentoo-devhelp@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-375996.home.otenet.gr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110822 Thunderbird/6.0 In-Reply-To: <1314257285.21876.18.camel@tablet> Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: ee207a114b887aeec66956fd93d247a6 On 08/25/2011 10:28 AM, Peter Volkov wrote: > =D0=92 =D0=92=D1=81=D0=BA, 21/08/2011 =D0=B2 21:32 +0300, Nikos Chantzi= aras =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> I have an XML file that specifies MIME types for an application. In m= y >> 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.O= RB20V >> * 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=20 desktop file with make_desktop_entry?