mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +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
|
||||
;;
|
||||
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}" &)
|
||||
|
Loading…
Reference in New Issue
Block a user