On 2022-05-13 21:55:12 +0200, Daan van Rossum wrote:
> * on Friday, 2022-05-13 19:49 +0200, Vincent Lefevre <vinc...@vinc17.org> 
> wrote:
> > A better tool could be to convert the text to HTML with just
> > URL recognition to generate <a href="URL">URL</a> links (and
> > perhaps a bit more), and run a web browser on it.
> 
> There is the 'urlscan' tool that does exactly this. It does the job,
> without using the terminal's url detection functionality.

Actually it doesn't. It just gives the context, but it will have
to pass the URL to an external web browser. Even though it seems
to have support to do that in a secure way, i.e. via a pipe,
most web browsers only support URLs provided as an argument,
which means that other users of the machine can see them, e.g.
with the "ps" utility.

What I was suggesting was to provide the contents as a temporary
HTML file, not accessible to other users (only the name of this
file would, but it could be a generic filename).

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to