Click or drag to resize

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
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Error ShellOpen(
	string uri
)

Parameters

uri
Type: SystemString

[Missing <param name="uri"/> documentation for "M:Godot.OS.ShellOpen(System.String)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.OS.ShellOpen(System.String)"]

See Also