{{newin|[[0.9.1]]|091|type=function}}
Opens a URL with the user's web or file browser.

== Function ==
=== Synopsis ===
<source lang="lua">
success = love.system.openURL( url )
</source>
=== Arguments ===
{{param|string|url|The URL to open. Must be formatted as a proper URL.}}
=== Returns ===
{{param|boolean|success|Whether the URL was opened successfully.}}

== Notes ==
Passing <code>file://</code> scheme in Android 7.0 (Nougat) and later always result in [https://developer.android.com/about/versions/nougat/android-7.0-changes.html#sharing-files failure]. Prior to [[11.2]], this will crash LÖVE instead of returning false.

== Examples ==
=== Open love2d.org when the game is loaded. ===
<source lang="lua">
function love.load()
    love.system.openURL("http://love2d.org/")
end
</source>
=== Open the game's save directory when "s" is pressed. ===
<source lang="lua">
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
</source>

== See Also ==
* [[parent::love.system]]
[[Category:Functions]]
{{#set:Description=Opens a URL with the user's web or file browser.}}
== Other Languages ==
{{i18n|love.system.openURL}}