Question: do we have a nice way to open URLs, using our API?
I want to avoid any kind of OS/vendor-specific stuff (like, assuming that Internet Explorer, Safari is installed…)
The following code works, except for Linux:
--- open a URL in the default OS browser
function open_url_in_browser(str_url)
if (os.platform() == "WINDOWS") then
os.execute(("start %s"):format(str_url))
elseif (os.platform() == "MACINTOSH") then
os.execute(("open %s"):format(str_url))
elseif (os.platform() == "LINUX") then
renoise.app():show_message(("Please copy-paste the following link: \n%s"):format(str_url))
end
end