Ticket #1686: use 'see' utility for vieweing images

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2012-10-05 11:24:30 +03:00 committed by Andrew Borodin
parent 804ccfb467
commit 5082d01ebd

View File

@ -38,6 +38,8 @@ do_open_action() {
*)
if [ -n "$DISPLAY" ]; then
(gqview "${MC_EXT_FILENAME}" &)
elif see >/dev/null 2>&1; then
(see "${MC_EXT_FILENAME}" &)
else
zgv "${MC_EXT_FILENAME}"
fi