Set file association on .pdf files in midnight commander

5.3k views Asked by At

I've been looking all over the net, but did not find anything useful.

How would one set default program for opening .pdf files with zathura for example, in midnight commander. I know I have to edit mc.ext file, but there are no docs available that says something about the format of entry, which would be used.

2

There are 2 answers

0
Zam On

/home/<user>/mc.ext accessible also in 'mc` via hotkey F9 (Main menu) -> Commands -> Edit extension file

0
1i8r4 On

Need to find in mc.ext next strings.

# PDF
type/^PDF
    Open=(see %f &)
    #Open=(acroread %f &)
    #Open=(ghostview %f &)
    View=%view{ascii} pdftotext %f -

And next change first string Open=(see %f &) by something that --> Open=(zathura %f &)