Basics
Guides
API Reference
Basics
Guides
API Reference
[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].
UriLauncher (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
Object.
A Object 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.get_uri ()
Gets the uri that will be opened.
launch_finish (object result)
Finishes the [method@Gtk.UriLauncher.launch] call and returns the result.
result is the result.set_uri (string uri)
Sets the uri that will be opened.
uri is the uri.None.[183:14] static extends: object
Generated metadata helpers for UriLauncher class surfaces.
properties ()
Returns property metadata for
UriLauncher.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.