Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-01

Starting default browser

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lee Jenkins

I think I remember there being a discussion not too long ago concerning opening the default browser from code. I can't remember if there was a proven way to accomplish on Linux or not. I would use shellexecute on windows, but am unsure about Linux and possible MacOS.

Thanks

Warm Regards, Lee

Reply by email

Henry Vermaak
to Lee Jenkins

2009/1/27 Lee Jenkins :

Show quoted text 5 lines
I think I remember there being a discussion not too long ago concerning opening the default browser from code. I can't remember if there was a proven way to accomplish on Linux or not. I would use shellexecute on windows, but am unsure about Linux and possible MacOS.

there is an example in the source for that. personally i'd use the freedesktop utils for that, e.g. xdg-open 'freepascal.org'. my debian variants also have an app called sensible-browser, but i don't know how common it is.

henry

Reply by email