OSShellOpen Method |
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 Customizing mailto: Links for a list of fields that can be added.
Use GlobalizePath(String) 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.
Namespace: Godot
public static Error ShellOpen( string uri )
[Missing <param name="uri"/> documentation for "M:Godot.OS.ShellOpen(System.String)"]
[Missing <returns> documentation for "M:Godot.OS.ShellOpen(System.String)"]