[neomutt-users] printcommand fails with pdf viewer spawned by trailing ampersand?

Peter P. peterparker at fastmail.com
Wed Mar 17 12:18:12 CET 2021

Hi list,

it seems that due to any upgrade my trusted printcommand stopped
set print_command="muttprint -p TO_FILE:/tmp/muttprint.ps %s && ps2pdf /tmp/muttprint.ps /tmp/muttprint.pdf && rm /tmp/muttprint.ps && qpdfview /tmp/muttprint.pdf &"

with the following lpr error(?) being thrown
	lpr: Error - The printer or class does not exist.
	Error: /undefinedfilename in (/tmp/muttprint.ps)
unless I remove the trailing ampersand after launching qpdfview. I can't
seem to understand how lpr is involved here at all and why the ampersand
makes all the difference. I have disabled all other muttprint config
files on my system as far as I can tell.

Is there also any better way of spawning the viewer and returning command to

Thanks to you all,
best, Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20210317/57402f75/attachment.sig>

More information about the neomutt-users mailing list