From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Updating dired-guess-shell-alist-default Date: Wed, 08 Jul 2020 05:25:33 +0300 Message-ID: <83v9iyrbdu.fsf@gnu.org> References: <87y2nv403r.fsf@warpmail.net> <83y2nvqgbc.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29938"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philip@warpmail.net, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 08 04:25:57 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jszmX-0007h6-6g for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jul 2020 04:25:57 +0200 Original-Received: from localhost ([::1]:37204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jszmW-00085n-8L for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Jul 2020 22:25:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jszlz-0007Xt-AP for emacs-devel@gnu.org; Tue, 07 Jul 2020 22:25:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56899) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jszly-0006Jv-Qa; Tue, 07 Jul 2020 22:25:22 -0400 Original-Received: from [176.228.60.248] (port=4525 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jszly-0005oN-06; Tue, 07 Jul 2020 22:25:22 -0400 In-Reply-To: (message from Stefan Monnier on Tue, 07 Jul 2020 15:48:26 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252759 Archived-At: > From: Stefan Monnier > Cc: "Philip K." , emacs-devel@gnu.org > Date: Tue, 07 Jul 2020 15:48:26 -0400 > > > So you suggest to use xdg-open if it's available, and otherwise do > > what? leave the current associations intact? or something else? > > Actually, that might be a good&simple solution, yes. If the current associations are way off, that would be simple but somewhat wrong, IMO. > > Does xdg-open invoke different programs than what we have now in > > dired-guess-shell-alist-default? > > It all depends on the system you have (and the tools that are > installed), but yes, xpdf and xloadimage seem rather outdated (they > still exist but are much less popular than they once were). What is used in their stead? > > Is there a way to know what it invokes for each file type? > > Do you mean for use to know statistically what it uses most often, > or for Emacs to determine it at runtime? The former.