From: Michael Welsh Duggan <mwd@md5i.com>
To: emacs-devel@gnu.org
Subject: Re: Updating dired-guess-shell-alist-default
Date: Tue, 07 Jul 2020 22:48:43 -0400 [thread overview]
Message-ID: <87lfjuhgc4.fsf@md5i.com> (raw)
In-Reply-To: <83tuyirbbg.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 08 Jul 2020 05:26:59 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Yuri Khan <yuri.v.khan@gmail.com>
>> Date: Wed, 8 Jul 2020 02:52:07 +0700
>> Cc: "Philip K." <philip@warpmail.net>, Emacs developers <emacs-devel@gnu.org>
>>
>> On Wed, 8 Jul 2020 at 02:24, Eli Zaretskii <eliz@gnu.org> wrote:
>>
>> > 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.
>>
>> What xdg-open invokes depends on the installed applications and, if
>> multiple applications are registered for handling a MIME type, on user
>> preferences.
>>
>> On Windows, the closest analogy is file type associations via the registry.
>>
>> Both are better than a hard-coded list of applications that might or
>> might not be installed on the user’s machine, and, if installed, might
>> or might not be their preference.
>
> Thanks, I think everyone agrees with these general principles. I was
> asking whether we have enough information to provide practical
> solutions for Posix hosts that don't have xdg-open.
I looked into this a little, and it seems that this is more complicated
than I thought it might be. I found this post on stackexchange:
https://unix.stackexchange.com/questions/144047/how-does-xdg-open-do-its-work
Seeing that xdg-open is a shell script, I poked around a little, and
there's an extensive tree of programs to use to try and figure out what
to do. Even open_generic runs the gamut of using xdg-mime, using
mailcap, using mimeopen, and more. In essence, xdg-open goes through a
lot of testing and checks to try to find a xdg-open-like program to
which it can delegate the opening of the file.
Most of the major desktops seem to have a way to maintain the file to
program mapping, but they all seem to do it differently.
--
Michael Welsh Duggan
(md5i@md5i.com)
next prev parent reply other threads:[~2020-07-08 2:48 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-07 8:50 Updating dired-guess-shell-alist-default Philip K.
2020-07-07 14:19 ` Eli Zaretskii
2020-07-07 16:10 ` Philip K.
2020-07-07 18:37 ` Eli Zaretskii
2020-07-07 19:05 ` Philip K.
2020-07-07 19:24 ` Eli Zaretskii
2020-07-07 19:48 ` Stefan Monnier
2020-07-08 2:25 ` Eli Zaretskii
2020-07-08 4:12 ` Stefan Monnier
2020-07-07 19:52 ` Yuri Khan
2020-07-08 2:26 ` Eli Zaretskii
2020-07-08 2:48 ` Michael Welsh Duggan [this message]
2020-07-08 7:52 ` tomas
2020-07-07 20:38 ` Philip K.
2020-07-08 2:28 ` Eli Zaretskii
2020-07-08 4:15 ` Stefan Monnier
2020-07-08 14:21 ` Eli Zaretskii
2020-07-08 15:08 ` Stefan Monnier
2020-07-08 8:28 ` Philip K.
2020-07-08 14:24 ` Eli Zaretskii
2020-07-08 14:33 ` Philip K.
2020-07-09 16:21 ` Philip K.
2020-07-11 10:07 ` Eli Zaretskii
2020-07-11 11:07 ` Philip K.
2020-07-11 11:15 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lfjuhgc4.fsf@md5i.com \
--to=mwd@md5i.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.