On Sun Aug16'26 07:15:38PM, Dave Ewart wrote:
> From: Dave Ewart <[email protected]>
> Date: Sun, 16 Aug 2026 19:15:38 +0100
> To: [email protected]
> Subject: Re: question on executing executable in mailcap
> 
> On Sunday, 16.08.2026 at 10:08 -0500, Ranjan Maitra via Mutt-users wrote:
> 
> > Hi,
> > 
> > I have the following in my $HOME/.mailcap file:
> > 
> > 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
> >  Press any key to continue...
> > 
> > What am I doing incorrectly?
> > 
> > How do I get the $HOME/bin file to be included?
> 
> Does it work if you give the full path, e.g. /home/username/bin/mutt_bgrun ?
> 
> Dave.
> 

Dave,

Thanks! Excellent question, and the answer is that it does.

Best wishes,
Ranjan

Reply via email to