From mboxrd@z Thu Jan 1 00:00:00 1970 From: julien lepiller Subject: Re: MIME database Date: Tue, 28 Nov 2017 11:01:54 +0100 Message-ID: <1f8eda54eb31d66d64c9fdcc4138853e@lepiller.eu> References: <20171127125053.C13FF4E0018@mta-1.openmailbox.og> <87k1ya3gdy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJciQ-0004tq-0d for guix-devel@gnu.org; Tue, 28 Nov 2017 05:02:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJciG-0007KS-1o for guix-devel@gnu.org; Tue, 28 Nov 2017 05:02:10 -0500 Received: from lepiller.eu ([2a00:5884:8208::1]:37548) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eJciF-0007Eq-NR for guix-devel@gnu.org; Tue, 28 Nov 2017 05:01:59 -0500 Received: from webmail.lepiller.eu (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 4a8fd921 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Tue, 28 Nov 2017 10:04:25 +0000 (UTC) In-Reply-To: <87k1ya3gdy.fsf@gnu.org> 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: guix-devel@gnu.org Le 2017-11-28 10:24, ludo@gnu.org a écrit : > 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 “wins.” > >> I was also I little confused that xdg-mime-database produces so many >> conflicts with shared-mime-info. It's role appears to be to update the >> data in shared-mime-data and have it overshadow the original data when >> conflicts are resolved during profile generation. Looks ugly seeing >> all those conflicts though. > > I guess it’s OK in that users normally don’t want to install these > packages at all, let alone installing both in the same profile. > >> I had a look at Fedora's version. They just have a single >> shared-mime-data package that runs update-mime-database, but also they >> add a few changes to make Evince open pdf's instead of Gimp, among >> other changes. >> >> This makes me feel that it's desirable for us to also tweak mimedata >> to make it more sensible -- Pdf's should open in a pdf reader before >> it opens in an image editor. It seems unrealistic to only tweak >> upstream projects to make all this mimedata mesh together perfectly to >> produce ideal default behaviour. > > Right, so I think the immediate course of action here would be to patch > GIMP’s MIME data so that it does not register as a PDF viewer. > > If we stumble upon other issues like that, we can fix them similarly. Thanks for investigating that. Inkscape also wants to open pdf files ;) > > How does that sound? > > Thanks for investigating! > > Ludo’.