How can I cause the browser to open a given URL from Tcl/Tk on Linux?
I'm using this proc on Windows, but I don't know what to do on Linux.
proc open_url {url} {
eval exec [auto_execok start] $url
}
#example call:
open_url http://example.com
You can use xdg-open on Linux.
exec xdg-open $url
There is some discussion here: Invoking Browsers on the Tcl wiki.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With