Mot Mot - 3 months ago 23
Linux Question

Linux: command to open URL in default browser

What command we have to execute (from Java, but that should not matter) on Linux (different common distributions) to open a given URL in the default browser?

Answer

The most cross-distribution one is xdg-open http://stackoverflow.com