From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Wingo Subject: Re: MIME database Date: Tue, 28 Nov 2017 11:13:40 +0100 Message-ID: <87induyaln.fsf@igalia.com> References: <20171127125053.C13FF4E0018@mta-1.openmailbox.og> <87k1ya3gdy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJctm-0000oF-A2 for guix-devel@gnu.org; Tue, 28 Nov 2017 05:13:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJcth-0003sL-Nv for guix-devel@gnu.org; Tue, 28 Nov 2017 05:13:54 -0500 In-Reply-To: <87k1ya3gdy.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Tue, 28 Nov 2017 10:24:25 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org On Tue 28 Nov 2017 10:24, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hello, > > (Moving the discussions to guix-devel.) > > brendan.tildesley@openmailbox.org skribis: > >> I was wondering why my pdf documents were getting opened in Gimp by >> default instead of Evince, so I investigated xdg-open and found it >> uses mimeopen as a fallback, and packaged it. Turns out it didn't make >> a difference and the issue was simply that the generated >> mimedata.cache in xdg-mime-database had Gimp listed before Evince. > > Oh, good catch. Profile generation is sensitive to package order; so > indeed, if GIMP comes first, it =E2=80=9Cwins.=E2=80=9D I had this problem with e.g. Nautilus vs Baobab on directories. Apparently the right solution is to install a desktop-specific package that manually does "tie-breaking" for MIME types that have multiple handlers. See 96d36f385cb1de83f95dd0404dc2166d6f877389. You might try just installing gnome-default-applications, or we might have a similar package. Andy