On Sat, Jun 06, 2015 at 11:17:26AM -0400, Xu Wang wrote: > I do not want to change it. I just want to understand. mupdf is my > default PDF reader. Also, xdg-open uses mupdf. mimeopen uses mupdf. I > have nothing in .mailcap about PDFs. > > I have read the manual but it mostly talks about .mailcap entries. > > So how does mutt choose an application to open files if no mailcap entry?
AFAIU, mutt doesn't make the choice, xdg-open does. Your distribution probably has a /etc/mailcap with a line like this: application/pdf; /usr/bin/xdg-open %s If you want to know how xdg-open does that, look at `man xdg-mime'. But I don't think that is complete, a bit of searching on the Internet should help there. Cheers, -- Suvayu Open source is the future. It sets us free.
