Re: [lazarus] Showing URL in default browser

2006-02-22 Thread Bram Kuijvenhoven
Felipe Monteiro de Carvalho wrote: You don't need a Firefox API to do this. Just send the shell command: "mozilla-firefox www.google.com" and if firefox is already open, it will open the page without opening a new instance. I tested here, try on your command line with firefox already open. If you

Re: [lazarus] Showing URL in default browser

2006-02-22 Thread Patrick Chevalley
I think it is nice to first try to launch the default application defined in KDE or GNOME, this not necessarily Konqueror or Galeon.To do that use  "kfmclient exec" or "gnome-open".This work not only for url but also for any mime type.  For example launch Xpdf or Acroread as defined in the desktop

Re: [lazarus] Showing URL in default browser

2006-02-21 Thread A.J. Venter
> > You don't need a Firefox API to do this. Just send the shell command: > > "mozilla-firefox www.google.com" and if firefox is already open, it > > will open the page without opening a new instance. I tested here, try > > on your command line with firefox already open. If you want it to open > >

Re: [lazarus] Showing URL in default browser

2006-02-21 Thread Mattias Gaertner
On Tue, 21 Feb 2006 22:48:02 -0300 "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote: > On 2/21/06, L505 <[EMAIL PROTECTED]> wrote: > > Where's the the Lin32 API when you need it? (Ermm. good quote of the > > year) > > Lol! Like people say here. It doesn't exist yet, but fell free to > im

Re: [lazarus] Showing URL in default browser

2006-02-21 Thread Felipe Monteiro de Carvalho
On 2/21/06, L505 <[EMAIL PROTECTED]> wrote: > Where's the the Lin32 API when you need it? (Ermm. good quote of the year) Lol! Like people say here. It doesn't exist yet, but fell free to implement it. r > Does firefox have some sort of API that allows users to remote control it from > anoth

Re: [lazarus] Showing URL in default browser

2006-02-21 Thread L505
> > It would be nice, if someone would write a package with a component to start > > a browser. Preferably without opening a new page/tab on every call. > > I added examples/openbrowser/. > > Maybe you want to add the above command for windows. > This problem is very hard to solve on Unix. I can

Re: [lazarus] Showing URL in default browser

2006-02-21 Thread Felipe Monteiro de Carvalho
On 2/21/06, Mattias Gaertner <[EMAIL PROTECTED]> wrote: > It would be nice, if someone would write a package with a component to start > a browser. Preferably without opening a new page/tab on every call. > I added examples/openbrowser/. > Maybe you want to add the above command for windows. This

Re: [lazarus] Showing URL in default browser

2006-02-21 Thread Mattias Gaertner
On Wed, 22 Feb 2006 00:40:28 +0100 "Darius Blaszijk" <[EMAIL PROTECTED]> wrote: > What could be considered as a platform independent way to show an URL in > the default browser? Under windows it would be something like: > > ShellExecute(0, 'open', MyURL, nil, nil, SW_SHOW); > > But it relies on

[lazarus] Showing URL in default browser

2006-02-21 Thread Darius Blaszijk
What could be considered as a platform independent way to show an URL in the default browser? Under windows it would be something like:   ShellExecute(0, 'open', MyURL, nil, nil, SW_SHOW);   But it relies on the windows unit. I believe that Lazarus relies on the definition of the browser ex