mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
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
Block a user