OSSingleton.shellOpen

Requests the OS to open a resource with the most appropriate program. For example: - OS.shell_open("C:\\Users\name\Downloads") on Windows opens the file explorer at the user's Downloads folder. - OS.shell_open("https://godotengine.org") opens the default web browser on the official Godot website. - OS.shell_open("mailto:example@example.com") opens the default email client with the "To" field set to example@example.com. See url=https://blog.escapecreative.com/customizing-mailto-links/Customizing mailto: Links/url for a list of fields that can be added. Use ProjectSettings.globalizePath to convert a res:// or user:// path into a system path for use with this method. Note: This method is implemented on Android, iOS, HTML5, Linux, macOS and Windows.

struct OSSingleton
@nogc nothrow
GodotError
shellOpen
(
in String uri
)

Meta