From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Updating dired-guess-shell-alist-default Date: Tue, 07 Jul 2020 15:48:26 -0400 Message-ID: References: <87y2nv403r.fsf@warpmail.net> <83y2nvqgbc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14744"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "Philip K." , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 07 21:49:12 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 1jstaa-0003kJ-JK for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Jul 2020 21:49:12 +0200 Original-Received: from localhost ([::1]:58042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jstaZ-0005SE-LL for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Jul 2020 15:49:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jstZy-00050k-S2 for emacs-devel@gnu.org; Tue, 07 Jul 2020 15:48:34 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:2696) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jstZv-0008UB-7x; Tue, 07 Jul 2020 15:48:34 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A2EF01002FA; Tue, 7 Jul 2020 15:48:29 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id C71961002C8; Tue, 7 Jul 2020 15:48:27 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1594151307; bh=V/posbzVzTxmDB/wlaAayGyKBdshAKVERx538WNckhc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TpRrZMShHSF+9QYGzm62GocSsGDTQ+0QJo93dGDZwQEy+OK71Y1pskpb05aY6SNMj E+JmmLkrTtTr57PIM/un3dFvW6CebmUWTw15zFW3T/lfaNXAa6UFn05e86MY05aiO/ FCdLuSW2xFz5aEYdcd2zeO55q3n+ngp8KhJ8TwfgEEMSwVOGhYoZQz0gnY9YUvowWg G23OKZr42wdM55K5y65t8CyhjeXn6s2Ihs6SkyF7jugNGOL6rqqynLSSi+sWzRLyUn GFFbzwoduUtlexyqhQJOMfpJ9sZUYnt59Dp2b178AuvCd5pNha1O4aPmu9+fm3YJw+ wEVoX+zM1mTzA== Original-Received: from alfajor (unknown [157.52.0.200]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 80BE9120388; Tue, 7 Jul 2020 15:48:27 -0400 (EDT) In-Reply-To: <83y2nvqgbc.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 07 Jul 2020 22:24:23 +0300") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/07 15:48:29 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:252754 Archived-At: > 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. > 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). > 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? Stefan