Linux: command to open URL in default browser

后端 未结 10 1885
青春惊慌失措
青春惊慌失措 2020-12-07 17:47

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?

10条回答
  •  醉话见心
    2020-12-07 17:57

    At least on Debian and all its derivatives, there is a 'sensible-browser' shell script which choose the browser best suited for the given url.

    http://man.he.net/man1/sensible-browser

提交回复
热议问题