[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs support for --hyperlink in ls?
From: |
Augusto Stoffel |
Subject: |
Re: Emacs support for --hyperlink in ls? |
Date: |
Fri, 06 May 2022 14:17:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1.50 (gnu/linux) |
On Wed, 4 May 2022 at 08:48, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Stephen Eglen <sje30@cam.ac.uk>
>> Cc: Stephen Eglen <sje30@cam.ac.uk>, emacs-devel@gnu.org
>> Date: Tue, 03 May 2022 21:38:47 +0100
>>
>> However, at least on my system, I find the following problem that I
>> think is caused by ls, rather than Emacs. e.g.
>>
>> $ ls --hyperlink /etc/anacrontab
>>
>> generates the following filename (after removing the markup)
>>
>> file://light/etc/anacrontab
>>
>> where 'light' is the name of my laptop (running arch linux).
>> browse-url-xdg-open is my browser-function, and
>>
>> $ xdg-open file://light/etc/anacrontab
>>
>> generates the error:
>>
>> xdg-open: file 'file://light/etc/anacrontab' does not exist
>
> I think TRT is to report this to the Coreutils developers as a bug in
> GNU 'ls'.
I think ls is doing TRT. One may call 'ls --hyperlink' on a remote
machine, so a complete file URL is needed.
On my computer (running Fedora), xdg-open opens the file as expected.
So I suppose this is an issue in the OP's operating system.