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 1QwUNG-0006Ja-5a for garchives@archives.gentoo.org; Thu, 25 Aug 2011 07:29:14 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A483521C084; Thu, 25 Aug 2011 07:29:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 72CD621C084 for ; Thu, 25 Aug 2011 07:29:05 +0000 (UTC) Received: from [192.168.1.3] (ap.ran.gpi.ru [195.209.218.156]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pva) by smtp.gentoo.org (Postfix) with ESMTPSA id 13B251B402C for ; Thu, 25 Aug 2011 07:29:03 +0000 (UTC) Subject: Re: [gentoo-devhelp] How to install MIME types? From: Peter Volkov To: gentoo-devhelp@lists.gentoo.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Thu, 25 Aug 2011 11:28:05 +0400 Message-ID: <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 X-Mailer: Evolution 2.32.3 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: f21dd4553587d3d6e876d61d3dcb99a1 =D0=92 =D0=92=D1=81=D0=BA, 21/08/2011 =D0=B2 21:32 +0300, Nikos Chantziar= as =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > I have an XML file that specifies MIME types for an application. In my= =20 > ebuild, I install it like this: >=20 > insinto /usr/share/mime/packages > doins someapp_mime_types.xml >=20 > I then use these calls (from fdo-mime.eclass): >=20 > fdo-mime_desktop_database_update > fdo-mime_mime_database_update >=20 > However, this results in: >=20 > * Updating desktop mime database ... > ACCESS DENIED open_wr: /usr/share/applications/.mimeinfo.cache.OR= B20V > * Updating shared mime info database ... > /usr/bin/update-mime-database: I don't have write permission on=20 > /usr/share/mime. Try rerunning me as root. >=20 > 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.