Ticket #1686: use 'see' utility as default pdf viewer when found

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2012-10-05 10:56:41 +03:00 committed by Andrew Borodin
parent 1aa122b765
commit 804ccfb467

View File

@ -97,10 +97,12 @@ do_open_action() {
fi fi
;; ;;
pdf) pdf)
if [ -n "$DISPLAY" ]; then if [ ! -n "$DISPLAY" ]; then
(xpdf "${MC_EXT_FILENAME}" &)
else
pdftotext -layout -nopgbrk "${MC_EXT_FILENAME}" - | ${PAGER:-more} pdftotext -layout -nopgbrk "${MC_EXT_FILENAME}" - | ${PAGER:-more}
elif see > /dev/null 2>&1; then
(see "${MC_EXT_FILENAME}" &)
else
(xpdf "${MC_EXT_FILENAME}" &)
fi fi
#(acroread "${MC_EXT_FILENAME}" &) #(acroread "${MC_EXT_FILENAME}" &)
#(ghostview "${MC_EXT_FILENAME}" &) #(ghostview "${MC_EXT_FILENAME}" &)