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: Tue, 07 Jul 2020 22:24:23 +0300 Message-ID: <83y2nvqgbc.fsf@gnu.org> References: <87y2nv403r.fsf@warpmail.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27153"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "Philip K." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 07 21:24:54 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 1jstD3-0006vv-Rh for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Jul 2020 21:24:53 +0200 Original-Received: from localhost ([::1]:41444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jstD2-000595-Sp for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Jul 2020 15:24:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jstCP-0004Jx-RO for emacs-devel@gnu.org; Tue, 07 Jul 2020 15:24:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51592) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jstCP-0004ok-He; Tue, 07 Jul 2020 15:24:13 -0400 Original-Received: from [176.228.60.248] (port=2511 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jstCO-0001i5-RS; Tue, 07 Jul 2020 15:24:13 -0400 In-Reply-To: <87y2nv403r.fsf@warpmail.net> (philip@warpmail.net) 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:252752 Archived-At: > From: "Philip K." > Cc: emacs-devel@gnu.org > Date: Tue, 07 Jul 2020 21:05:28 +0200 > > > So you suggest to use xdg-open if it's available, and otherwise do > > what? leave the current associations intact? or something else? > > That's what I wanted to discuss, if I had a concrete suggestion I would > have submitted a patch. > > All in all, I think that xdg-open and similar commands are more > practical than for example xpdf, xloadimage, etc. Systems with xpdf, > xloadimage, etc. but without xdg-open are probably an extreme minority, > but nobody can say for sure -- and changes shouldn't come at their > expense. Does xdg-open invoke different programs than what we have now in dired-guess-shell-alist-default? Is there a way to know what it invokes for each file type? I mean, you said our current database is "not modern", so that probably means xdg-open invokes other programs, and I think it would be good to know the differences, so we have something tangible to talk about. > I was thinking about improving the guessing system to support multiple > programs and check their existence. Assuming the structure of > dired-guess-shell-alist-default may be changed, it would seem like a > good compromise. Yes, possibly. But before we discuss these details, I think it would be good to define the outcome we are after.