Available since LÖVE 0.9.1
This function is not supported in earlier versions.
Opens a URL with the user's web or file browser.
success = love.system.openURL( url )
string url
boolean success
function love.load() love.system.openURL("http://love2d.org/") end
function love.load() -- Make sure the save directory exists by writing an empty file. love.filesystem.write("test.txt", "") end function love.keypressed(key) if key == "s" then -- To open a file or folder, "file://" must be prepended to the path. love.system.openURL("file://"..love.filesystem.getSaveDirectory()) end end
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.system.openURL