Ticket #3962: mc-3962-support-geeqie-image-viewer.patch

File mc-3962-support-geeqie-image-viewer.patch, 923 bytes (added by and, 5 years ago)
  • misc/ext.d/image.sh

    From e3cc8a4da26ddd7833537362f945ad9b36919224 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Mon, 21 Jan 2019 16:50:04 +0000
    Subject: [PATCH] support geeqie image viewer
    
    Support geeqie (a fork of GQview) as image viewer
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     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 b do_open_action() { 
    4040        ;; 
    4141    *) 
    4242        if [ -n "$DISPLAY" ]; then 
    43             (gqview "${MC_EXT_FILENAME}" &) 
     43            if which geeqie >/dev/null 2>&1; then 
     44                (geeqie "${MC_EXT_FILENAME}" &) 
     45            else 
     46                (gqview "${MC_EXT_FILENAME}" &) 
     47            fi 
    4448        elif see >/dev/null 2>&1; then 
    4549            (see "${MC_EXT_FILENAME}" &) 
    4650        else