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
Passing file://
scheme in Android 7.0 (Nougat) and later always result in failure. Prior to 11.2, this will crash LÖVE instead of returning false.
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