[lazarus] Launching URL in Linux

Tony Maro tony at maro.net
Wed Dec 25 10:32:57 EST 2002


Well I was hoping to use HTML help files and have it just launch the
browser...  If you can't get to the help files to find out how to make
help files work that might be a problem ;-)

Can someone suggest a better way to handle help files without getting
too specific to distro or desktop?

On Wed, 2002-12-25 at 03:49, Michael.VanCanneyt at Wisa.be wrote:
> 
> 
> On 24 Dec 2002, Tony Maro wrote:
> 
> > Anybody have a clue of how to launch a URL (local filesystem or
> > internet) in the default browser in Linux?
> >
> > I know I could do a shell execute of "mozilla http://whatever.com/" but
> > that will only work if the user has Mozilla.
> >
> > Any ideas?
> 
> There is unfortunately no such mechanism. The 'default browser' does not
> exist on linux.
> What you can do is try to detect whether the user runs KDE/Gnome,
> and run the default browser for these, and if not, let the user decide.
> 
> Personally, I would use a 'preferences' dialog to let the user select the
> browser he/she wants to use, and set some reasonable default.
> 
> Michael.
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives







More information about the Lazarus mailing list