mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Ticket #1686: use 'see' utility as default pdf viewer when found
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
1aa122b765
commit
804ccfb467
@ -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}" &)
|
||||||
|
Loading…
Reference in New Issue
Block a user