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
;;
pdf)
if [ -n "$DISPLAY" ]; then
(xpdf "${MC_EXT_FILENAME}" &)
else
if [ ! -n "$DISPLAY" ]; then
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
#(acroread "${MC_EXT_FILENAME}" &)
#(ghostview "${MC_EXT_FILENAME}" &)