Gio.AppInfo.launch_default_for_uri
function launch_default_for_uri(uri: String, launch_context: Gio.AppLaunchContext): Boolean {
// Gjs wrapper for g_app_info_launch_default_for_uri()
}
Utility function that launches the default application registered to handle the specified uri. Synchronous I/O is done on the uri to detect the type of the file if required.
- uri
the uri to show
- launch_context
an optional Gio.AppLaunchContext.
- Returns
true on success, false on error.