Ticket #4615: mc-4615-01-select-browser-at-runtime-fixup.patch

File mc-4615-01-select-browser-at-runtime-fixup.patch, 1.2 KB (added by and, 8 days ago)

minor fixes

  • misc/.gitignore

    From 7531c56935fbbd649e8b702698c1e3a0a66f79a1 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Thu, 19 Dec 2024 16:00:00 +0000
    Subject: [PATCH] (web.sh) select browser at runtime FIXUP
    
     - use POSIX compatible builtin 'command' (all ext.d scripts use it)
     - allow 'web.sh' git handling
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     misc/.gitignore   | 1 -
     misc/ext.d/web.sh | 2 +-
     2 files changed, 1 insertion(+), 2 deletions(-)
    
    diff --git a/misc/.gitignore b/misc/.gitignore
    index 7bf6778a9..530b73140 100644
    a b mc.ext 
    22ext.d/doc.sh 
    33ext.d/misc.sh 
    44ext.d/text.sh 
    5 ext.d/web.sh 
    65mc.charsets 
    76mc.menu 
    87mcedit.menu 
  • misc/ext.d/web.sh

    diff --git a/misc/ext.d/web.sh b/misc/ext.d/web.sh
    index 41d516f2a..8de9c70d1 100755
    a b do_open_action() { 
    3030    html) 
    3131        (if [ -n "$DISPLAY" ]; then 
    3232            for browser in gnome-moz-remote mozilla firefox chromium google-chrome konqueror brave-browser opera open ; do 
    33                 if which "${browser}" 1>&2 ; then 
     33                if command -v "${browser}" 1>&2 ; then 
    3434                    "${browser}" file://"${MC_EXT_CURRENTDIR}"/"${MC_EXT_BASENAME}" 1>&2 & 
    3535                    break 
    3636                fi