From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Re: MIME database Date: Tue, 28 Nov 2017 19:23:30 +0800 Message-ID: <87y3mqir4d.fsf@gmail.com> References: <20171127125053.C13FF4E0018@mta-1.openmailbox.og> <87k1ya3gdy.fsf@gnu.org> <1f8eda54eb31d66d64c9fdcc4138853e@lepiller.eu> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJdzT-0002S2-LG for guix-devel@gnu.org; Tue, 28 Nov 2017 06:23:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJdzP-0004ED-L2 for guix-devel@gnu.org; Tue, 28 Nov 2017 06:23:51 -0500 Received: from mail-pf0-x22e.google.com ([2607:f8b0:400e:c00::22e]:34573) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJdzP-0004E3-Ed for guix-devel@gnu.org; Tue, 28 Nov 2017 06:23:47 -0500 Received: by mail-pf0-x22e.google.com with SMTP id k24so3511pfb.1 for ; Tue, 28 Nov 2017 03:23:47 -0800 (PST) In-Reply-To: <1f8eda54eb31d66d64c9fdcc4138853e@lepiller.eu> (julien lepiller's message of "Tue, 28 Nov 2017 11:01:54 +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: julien lepiller Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable julien lepiller writes: > Le 2017-11-28 10:24, ludo@gnu.org a =C3=A9crit=C2=A0: >> 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 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=E2=80=99s OK in that users normally don=E2=80=99t want to ins= tall 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=E2=80=99s 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 ;) > On my laptop, the recommended programs include evince, libreoffice draw, gimp, inkscape, imagemagick and winebrowser. I am not running guixsd though. >> >> How does that sound? >> >> Thanks for investigating! >> >> Ludo=E2=80=99. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEdZDkzSn0Cycogr9IxYq4eRf1Ea4FAlodRzMACgkQxYq4eRf1 Ea4yOQ/9GVJ38FEfGiXNwoIHXcJDqYvkJ+ct/37FLNfCFikTY9/5aogiJLEQF3Tu X/tlTwzhRu0Lm8QdptC/uSh5NQWXyN1qhx5ewzFphzLwQpLrgmGnrp0PczsSW8Fx xhwDfgLv7+NE9DJTz/JEVD9uSMRB/++0Y6S/EtHOEydvpYfWJ8rkvVi1BcPJD4y4 V0uUXLO5hoR1KnB8kB8RL6ICE1ElIyNGVVwhx8tiw+CZFKkJi3n3wu/1depDUssB 9SqTI9M9KqsjJJLCR1Yl9wSeAhicrHDTiTfhNEpTbi36MCqCfgmXZZyL6z/wpoBO VyBkPvIm9BfjWMIyJeKBbx7lG1NXvTqSLls8RLxAp8b+b4r3zR7cs6yTrdr0qfli bDFIkUlscog9isnGyiHwuAg2Pk+FeYZcyejJ2/6703xIcW2Y0aiRTs7xjidLTCJi KvyshZePk7jEAh2earFG6+y98Mr7QKpEr6vqICvzPAbkYUr1FlXg9Jo2qF900BbY NTkfYKalTu8Yq+SmKwLkMHJh0pHMMirfX9lLrAReCALHSBgAR5FPmqKZOOUM0WDI CTw3V3TAf47aWeC2ISHRaOzHi5Wgn5Lmy2EmtWCxPNQxx6RUEDtKBPBHomDvDnp/ 7+HVIyKKJIaOhdU+nURocyBr0MsAEfvYRuyfoJ12blmsJHfmwQ0= =BSKe -----END PGP SIGNATURE----- --=-=-=--