[Top][All Lists]

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

Re: preferred vs. running browser

From: Werner LEMBERG
Subject: Re: preferred vs. running browser
Date: Tue, 25 Apr 2006 21:29:47 +0200 (CEST)

> > . browse-url doesn't check whether one of the listed browsers is
> >   already running (assuming that browse-url-browser-function is
> >   not customized, this is, the value is
> >   'browse-url-default-browser).  In my case I have called firefox,
> >   but browse-url called mozilla.
> >
> >   Wouldn't it be better to add some code so that a browser which
> >   is
> Hmpf. You could always try to write a wrapper shell script which tries
> alternatives, in descending order of desirability, like so:
>   firefox -remote "openURL(http://www.emacswiki.org,new-tab)" ||
>   <<try Konqueror remotely>> ||
>   <<start firefox>> ||
>   <<*GASP* Internet Explorer there?>> ||
>   ...

There is probably a misunderstanding.  My main interest is to avoid
opening a second browser.  Assuming that Emacs has `Mozilla' first in
its list, and I'm running Firefox, browse-url ignores the latter and
starts a fresh Mozilla.  I would like this behaviour:

  . If browse-url-browser-function is customized to a specific
    browser, always use it.

  . Otherwise check whether there is a browser running -- I don't know
    whether it is possible to do that.  If such a browser is found,
    use it.

  . Otherwise, start a new browser, trying binaries in the order as
    specified within browse-url-default-browser.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]