emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating dired-guess-shell-alist-default


From: Eli Zaretskii
Subject: Re: Updating dired-guess-shell-alist-default
Date: Sat, 11 Jul 2020 13:07:07 +0300

> From: "Philip K." <philip@warpmail.net>
> Date: Thu, 09 Jul 2020 18:21:48 +0200
> 
> I've tried to implement something that picks xdg-open or an equivalent
> default on other systems, and if not found looks for other popular
> applications. 

Thanks.

> +(defcustom dired-guess-default-media-command
> +  (cond ((eq system-type 'windows-nt)   "start")
> +        ((eq system-type 'darwin)       "open")
> +        ((executable-find "xdg-open")   "xdg-open"))
> +  "Default command to use for opening media files."
> +  :type '(choice (const :tag "No default command" nil)
> +                 (string :tag "Command"))
> +  :version "28.1")

I think for MS-Windows this should use w32-shell-execute with
OPERATION set to "open".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]