mirror of https://github.com/MidnightCommander/mc
ext.d/image.sh: check $DISPLAY in the xpm View action.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
51b0b5fe7c
commit
3a160902a1
|
@ -17,7 +17,7 @@ do_view_action() {
|
|||
which exif >/dev/null 2>&1 && exif "${MC_EXT_FILENAME}" 2>/dev/null
|
||||
;;
|
||||
xpm)
|
||||
sxpm "${MC_EXT_FILENAME}"
|
||||
[ -n "$DISPLAY" ] && sxpm "${MC_EXT_FILENAME}"
|
||||
;;
|
||||
*)
|
||||
identify "${MC_EXT_FILENAME}"
|
||||
|
|
Loading…
Reference in New Issue