Roger Bell_West <
roger+ao...@nospam.firedrake.org> writes:
> On 2013-03-21, Haines Brown wrote:
>>It seems that a dired command cannot display a HTML page in either
>>Firefox or Conkeror. That is, the command "! firefox" issued on the
>>currently selected .html file in dired opens the browser, but with file
>>not found message. So the problem is not peculiar to Conkeror. I'll have
>>to search to see if there's a solution for this problem.
>
> My inclination would be to try a command that'll dump its environment
> to somewhere useful, as it might be:
>
> #! /bin/bash
> set >~/envdump
>
> and see what you have in PWD. I still think that it's changing
> directory and therefore can't find the bare filename.
I cd to the location of my test .html (~/Downloads/file.html), run the
script and find that its path is:
PWD=/home/haines/Downloads
This is as expected, but you got me thinking more about paths, and
/Downloads is not in my PATH. That may be the problem. I don't know
how to put it there just for Conkeror (a line in .conkerorrc?). I did
put a line to put ~/Directory into my path in ~/.profile, but I can't
restart my X system at this point because of a lot of open work.
I discovered a work-around in the sense that I can now display .html
files in dired that are far more readable than w3m. I put this into
my .emacs:
(define-key global-map (kbd "\C-b") 'browse-url-of-dired-file)
I never use C-b to backspace one letter in dired, and this maping does
as I want ("b" for browse).
Haines