Skip to content

Instantly share code, notes, and snippets.

@josefnpat
Last active December 20, 2015 20:19
Show Gist options
  • Save josefnpat/6190007 to your computer and use it in GitHub Desktop.
Save josefnpat/6190007 to your computer and use it in GitHub Desktop.
Thank you ananasblau @TomK32
function openURL(url)
if love._os == 'OS X' then
os.execute('open "' .. url .. '"')
elseif love._os == 'Windows' then
os.execute('start "' .. url .. '"')
elseif love._os == 'Linux' then
os.execute('xdg-open "' .. url .. '" &')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment