From 7b27c2af08ebee0a3c3b6b7e8cebfff9f8e7c30c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 3 Jun 2020 14:30:26 +0300 Subject: [PATCH] .mc: Replace `qpdfview`, use `evince` to view PDFs `qpdfview` doesn't support non-UTF8 paths. --- .mc/mc.ext | 6 ++---- .mc/menu | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.mc/mc.ext b/.mc/mc.ext index 3388f4f..99af382 100644 --- a/.mc/mc.ext +++ b/.mc/mc.ext @@ -506,6 +506,7 @@ type/^PostScript # PDF type/^PDF + Edit=libreoffice %f & Open=(see %f &) #Open=(acroread %f &) #Open=(ghostview %f &) @@ -694,8 +695,6 @@ shell/.chm # DejaVu shell/.djvu Open=djview %f & - #Open=evince %f & - #Open=qpdfview %f & # EPUB shell/.epub @@ -707,8 +706,7 @@ shell/.fb2 View=%view{ascii} xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl %f type/^PostScript - #Open=evince %f & - Open=qpdfview %f & + Open=libreoffice %f & View=%view{ascii} ps2ascii %f # RTF diff --git a/.mc/menu b/.mc/menu index 4362b43..8cd39a5 100644 --- a/.mc/menu +++ b/.mc/menu @@ -61,9 +61,9 @@ T fb2txt esac $A %f | xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl - | webstdin -e txt -t -+= t lr & f \.(pdf|PDF|ps|PS)(\.bz2|\.gz)?$ -e View pdf/ps with qpdfview - qpdfview "`echo \"%f\" | sed 's/\\\\//g' | iconv -t utf-8`" & ++= t lr & f \.(pdf|PDF)$ +e View pdf + evince %f & += t lr & f \.djvu(\.bz2|\.gz)?$ e View djvu -- 2.39.5