Skip to content

Commit

Permalink
Ticket #4615: (web.sh) - select browser at runtime fixes
Browse files Browse the repository at this point in the history
- use POSIX compatible builtin 'command' (all ext.d scripts use it)
- allow 'web.sh' git handling

Signed-off-by: Andreas Mohr <[email protected]>
Signed-off-by: Yury V. Zaytsev <[email protected]>
  • Loading branch information
Andreas Mohr authored and zyv committed Dec 19, 2024
1 parent 84702df commit 8f4b10b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion misc/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ mc.ext
ext.d/doc.sh
ext.d/misc.sh
ext.d/text.sh
ext.d/web.sh
mc.charsets
mc.menu
mcedit.menu
Expand Down
2 changes: 1 addition & 1 deletion misc/ext.d/web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ do_open_action() {
html)
(if [ -n "$DISPLAY" ]; then
for browser in gnome-moz-remote mozilla firefox chromium google-chrome konqueror brave-browser opera open ; do
if which "${browser}" 1>&2 ; then
if command -v "${browser}" 1>&2 ; then
"${browser}" file://"${MC_EXT_CURRENTDIR}"/"${MC_EXT_BASENAME}" 1>&2 &
break
fi
Expand Down

0 comments on commit 8f4b10b

Please sign in to comment.