Re: mc and firefox



Hi Frank,

Hi Dominique,

Dominique Michel <dominique michel citycable ch> wrote:
Frank Dietrich <ABLEsoft gmx de> a Ãcrit :
Dominique Michel <dominique michel citycable ch> wrote:
I am very happy with mc as filemanager, but I have a problem when
lauching some of my local html files. When the filename or the
path contain a space, I just get an error message from firefox,
and the URL it is traying to load is stopping at the first space.

# html
regex/\.([hH][tT][mM][lL]?)$
    Open=(if test -n "gnome-moz-remote" && test -n "$DISPLAY";
    then
(gnome-moz-remote file://%d/%p &) 1>&2; else links %f || lynx
-force_html %f || ${PAGER:-more} %f; fi) 2>/dev/null

I also try:
    Open=(firefox "%d%p") 1>&2 &
and
    Open=firefox "%f" 1>&2 &

I also try with and without double quotes around %f and %d%p. And
with and without the 1>&2 & part.

...

But I am not sure that the problem reside with mc, because I get
exactly the same false behaviour if I run into the console:

firefox "/path to the/file with some space.html"

Does it work if you replace the blanks with %20
   firefox "/path%20to%20the/file%20with%20some%20space.html"

No, I get something like %2520 instead of %20

Is firefox the firefox binary or some kind of wrapper script to start
the fifefox?

   file `which firefox`

/usr/bin/firefox: Bourne shell script text executable

$ cat /usr/bin/firefox
#!/bin/sh
#
# Stub script to run mozilla-launcher.  We used to use a symlink here
# but OOo brokenness makes it necessary to use a stub instead:
# http://bugs.gentoo.org/show_bug.cgi?id=78890

export MOZILLA_LAUNCHER=firefox
export MOZILLA_LIBDIR=/usr/lib/mozilla-firefox
export MOZ_PLUGIN_PATH=${MOZ_PLUGIN_PATH:-/usr/lib/nsbrowser/plugins}

exec /usr/libexec/mozilla-launcher "$@"

$ file `which seamonkey`
/usr/bin/seamonkey: Bourne shell script text executable

$ cat /usr/bin/seamonkey
#!/bin/sh
#
# Stub script to run mozilla-launcher.  We used to use a symlink here
# but OOo brokenness makes it necessary to use a stub instead:
# http://bugs.gentoo.org/show_bug.cgi?id=78890

export MOZILLA_LAUNCHER=seamonkey
export MOZILLA_LIBDIR=/usr/lib/seamonkey
export MOZ_PLUGIN_PATH=${MOZ_PLUGIN_PATH:-/usr/lib/nsbrowser/plugins}

exec /usr/libexec/mozilla-launcher "$@"

So, both firefox and seamonkey are using the same launcher
script /usr/libexec/mozilla-launcher. It is the joined piece.

In firefox case, it launch /usr/lib/mozilla-firefox/firefox-bin
I try to run

/usr/lib/mozilla-firefox/firefox-bin "/path to the/file With Space.html"

and it worked fine. So the bug must be in mozilla-launcher. I just find that
it is a mozilla-launcher ebuild and done a search on gentoo bugzilla. I find
this http://bugs.gentoo.org/show_bug.cgi?id=215110 with a patch from a gui that
have almost the same problem from konqueror. So I will try it.

Cheers,
Dominique


regardsI 
Frank


-- 
Dominique Michel

Mes 3 projets prÃfÃrÃs auxquels je contribue:
 * FVWM-Crystal, le bureau basà sur FVWM:
      http://fvwm-crystal.org
 * AlsaPlayer, le lecteur audio avec contrÃle de vitesse en continu:
      www.alsaplayer.org
 * L'overlay pour la MAO sous gentoo:
      http://proaudio.tuxfamily.org/wiki/index.php?title=Main_Page



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]