On Sun Aug16'26 07:22:46PM, Michael Kjörling wrote:
> From: Michael Kjörling <[email protected]>
> Date: Sun, 16 Aug 2026 19:22:46 +0000
> To: [email protected]
> Subject: Re: question on executing executable in mailcap
> 
> On 16 Aug 2026 13:33 -0500, from [email protected] (Ranjan Maitra via 
> Mutt-users):
> >>> application/pdf;                   mutt_bgrun "${PDFVIEWER:-zathura}" %s; 
> >>> test=test -n "$DISPLAY"; nametemplate=%s.pdf; description="PDF Document"
> >>> 
> >>> So this uses mutt_bgrun which is a shell script in my $HOME/bin
> >>> 
> >>> However, when I try to see the attachment I get:
> >>> 
> >>>  sh: line 1: mutt_bgrun: command not found
> >> 
> >> Does it work if you give the full path, e.g. /home/username/bin/mutt_bgrun 
> >> ?
> > 
> > Thanks! Excellent question, and the answer is that it does.
> 
> Then check the environment from within mutt. <shell-escape> something
> like `env | less` and look closely at $PATH. Does it include ~/bin?
> 

Michael,

Thanks! I am sorry, but what does this mean? I tried hitting ESC but did not 
get anything that can work. Sorry about that.

Btw, I just wanted to add that "running" mutt_bgrun (which is meaningless of 
course) from within xterm shows that the PATH includes ~/bin so it is loaded.

But apparently not on mutt.

Best wishes,
Ranjan


Reply via email to