ext.d/image.sh: check $DISPLAY in the xpm View action.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2024-01-13 16:13:38 +03:00
parent 51b0b5fe7c
commit 3a160902a1
1 changed files with 1 additions and 1 deletions

View File

@ -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}"