Basics
Guides
API Reference
Basics
Guides
API Reference
[203:14] static extends: object
Generated metadata helpers for UriLauncher class surfaces.
properties ()
Returns property metadata for
UriLauncher.
A list.[17:7] extends: object
Asynchronous API to open a uri with an application. GtkUriLauncher collects
the arguments that are needed to open the uri. 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 [method@Gtk.UriLauncher.launch] function. To
launch a file, use [class@Gtk.FileLauncher].
GtkUriLauncher (uri = null)
Creates a new
GtkUriLauncherobject.
uri is the uri to open.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
GObject.
A GObject object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setUri (string Value)
The uri to launch.
Value is the new property value.None.can_launch (object parent)
Returns whether the launcher is likely to succeed in launching an application for its uri. This can be used to disable controls that trigger the launcher when they are known not to work.
parent is the parent window.false if the launcher is known not to support the uri, true otherwise.get_uri ()
Gets the uri that will be opened.
the uri.launch (object parent, object cancellable, user_data)
Launches an application to open the uri. This may present an app chooser dialog to the user.
parent is the parent window.cancellable is a cancellable to cancel the operation.callback is a callback to call when the operation is complete.user_data is data to pass to @callback.None.launch_finish (object result)
Finishes the [method@Gtk.UriLauncher.launch] call and returns the result.
result is the result.true if an application was launched.set_uri (string uri)
Sets the uri that will be opened.
uri is the uri.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.