From 01f1206186dee5952fc24ae09ea2af76db9c55cd Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Mon, 21 Jan 2019 16:50:04 +0000 Subject: [PATCH] Ticket #3962: support Geeqie image viewer. Use Geeqie (a fork of GQview) as main image viewer, fallback to GQview. Signed-off-by: Andreas Mohr Signed-off-by: Andrew Borodin --- misc/ext.d/image.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/ext.d/image.sh b/misc/ext.d/image.sh index 8afbad6c0..583c09ecf 100755 --- a/misc/ext.d/image.sh +++ b/misc/ext.d/image.sh @@ -40,7 +40,11 @@ do_open_action() { ;; *) if [ -n "$DISPLAY" ]; then - (gqview "${MC_EXT_FILENAME}" &) + if which geeqie >/dev/null 2>&1; then + (geeqie "${MC_EXT_FILENAME}" &) + else + (gqview "${MC_EXT_FILENAME}" &) + fi elif see >/dev/null 2>&1; then (see "${MC_EXT_FILENAME}" &) else