On 2017-12-31 11:21, firstname.lastname@example.org wrote: >> On Dec 30, 2017 13:01, <email@example.com> wrote:
>> <a href=file:/home/joe/data/notes.odt>notes</a>
>> When I click on "notes" (using Firefox) a dialog pops up
>> that reads: "What should Firefox do with this file?"
>> (*) Open with LibreOffice Writer (default) >> (1) What actions and what syntax could I use to open a plain text
>> document with 'kwrite' (the text editor that I use most often)?
>> (2) How can I get this to work with the Chrome browser, also?
> You suggested:
> <a href="/home/joe/data/SOMEFILE.txt">notes</a> > [opens the file], to read-only, but what I want to
> do is open the file in the text editor 'kwrite'.
I am not sure that firefox can do this without a lot of fooling around,
because this is way outside what firefox was designed to do. "Open a
file with MIME type text/plain in the browser, read-only" seems to be
baked in to the application. A number of people have wanted to do what
you're doing as seen in
https://support.mozilla.org/bn-BD/questions/738336 , but that's from
~2011 and so may not be applicable any more.
FWIW, konqueror will allow you to right-click on <a href="file.txt">a
link like so</a> and open it with kwrite.