Class

GtkUriLauncher

Description [src]

final class Gtk.UriLauncher : GObject.Object {
  /* No available fields */
}

A GtkUriLauncher object collects the arguments that are needed to open a uri with an application.

Depending on system configuration, user preferences and available APIs, this may or may not show an app chooser dialog or launch the default application right away.

The operation is started with the gtk_uri_launcher_launch() function. This API follows the GIO async pattern, and the result can be obtained by calling gtk_uri_launcher_launch_finish().

To launch a file, use GtkFileLauncher.

Available since:4.10

Ancestors

  • GObject

Constructors

gtk_uri_launcher_new

Creates a new GtkUriLauncher object.

Available since: 4.10

Instance methods

gtk_uri_launcher_get_uri

Gets the uri that will be opened.

Available since: 4.10

gtk_uri_launcher_launch

Launch an application to open the uri.

Available since: 4.10

gtk_uri_launcher_launch_finish

Finishes the gtk_uri_launcher_launch() call and returns the result.

Available since: 4.10

gtk_uri_launcher_set_uri

Sets the uri that will be opened.

Available since: 4.10

Properties

Gtk.UriLauncher:uri

The uri to launch.

Available since: 4.10

Class structure

struct GtkUriLauncherClass {
  GObjectClass parent_class;
  
}
Class members
parent_class
GObjectClass
  No description available.