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 |
2 | 2 | ext.d/doc.sh |
3 | 3 | ext.d/misc.sh |
4 | 4 | ext.d/text.sh |
5 | | ext.d/web.sh |
6 | 5 | mc.charsets |
7 | 6 | mc.menu |
8 | 7 | mcedit.menu |
diff --git a/misc/ext.d/web.sh b/misc/ext.d/web.sh
index 41d516f2a..8de9c70d1 100755
a
|
b
|
do_open_action() { |
30 | 30 | html) |
31 | 31 | (if [ -n "$DISPLAY" ]; then |
32 | 32 | 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 |
34 | 34 | "${browser}" file://"${MC_EXT_CURRENTDIR}"/"${MC_EXT_BASENAME}" 1>&2 & |
35 | 35 | break |
36 | 36 | fi |