Skip to content

Commit

Permalink
Merge branch '4615_browser_runtime'
Browse files Browse the repository at this point in the history
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
  • Loading branch information
zyv committed Dec 17, 2024
2 parents 511d4d8 + e3689b5 commit 87ff856
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 0 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,6 @@ if $HAVE_FILECMD; then
fi
fi

dnl Only list browsers here that can be run in background (i.e. with `&')
AC_CHECK_PROGS(X11_WWW, [gnome-moz-remote mozilla firefox konqueror opera])


dnl ############################################################################
dnl Check for other tools
Expand Down Expand Up @@ -608,7 +605,6 @@ misc/ext.d/Makefile
misc/ext.d/doc.sh
misc/ext.d/misc.sh
misc/ext.d/text.sh
misc/ext.d/web.sh
misc/macros.d/Makefile
misc/mc.ext.ini
Expand Down
9 changes: 4 additions & 5 deletions misc/ext.d/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@ extdir = $(EXTHELPERSDIR)
SCRIPTS_IN = \
doc.sh.in \
misc.sh.in \
text.sh.in \
web.sh.in
text.sh.in

SCRIPTS_OUT = \
doc.sh \
misc.sh \
text.sh \
web.sh
text.sh

SCRIPTS_UNTOUCHED = \
archive.sh \
image.sh \
package.sh \
sound.sh \
video.sh
video.sh \
web.sh

ext_SCRIPTS = \
$(SCRIPTS_UNTOUCHED) \
Expand Down
9 changes: 7 additions & 2 deletions misc/ext.d/web.sh.in → misc/ext.d/web.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ do_open_action() {

case "${filetype}" in
html)
(if [ -n "@X11_WWW@" -a -n "$DISPLAY" ]; then
(@X11_WWW@ file://"${MC_EXT_CURRENTDIR}"/"${MC_EXT_BASENAME}" &) 1>&2
(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
"${browser}" file://"${MC_EXT_CURRENTDIR}"/"${MC_EXT_BASENAME}" 1>&2 &
break
fi
done
else
elinks "${MC_EXT_FILENAME}" || \
links "${MC_EXT_FILENAME}" || \
Expand Down

0 comments on commit 87ff856

Please sign in to comment.