It derives from <GObject>.
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 uri-launcher:launch function.
To launch a file, use <GtkFileLauncher>.
The uri to launch.
Its value is a string, or #f.
Set it with (set! (uri-launcher:uri self) value).
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.
Passed: a <GtkUriLauncher>.
an uri launcher
Passed, or left out: a <GtkWindow>, or #f.
the parent window
Returned: a boolean.
false if the launcher is known not to support the uri, true otherwise
Gets the uri that will be opened.
Passed: a <GtkUriLauncher>.
an uri launcher
Returned: a string, or #f.
the uri
Launches an application to open the uri.
This may present an app chooser dialog to the user.
Passed: a <GtkUriLauncher>.
an uri launcher
Passed, or left out: a <GtkWindow>, or #f.
the parent window
Passed, or left out: a <GCancellable>, or
#f.
a cancellable to cancel the operation
Passed, or left out: a procedure, or #f.
a callback to call when the operation is complete
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
data to pass to callback
Finishes the uri-launcher:launch call
and returns the result.
Passed: a <GtkUriLauncher>.
an uri launcher
Passed: a <GAsyncResult>.
the result
Returned: a boolean.
true if an application was launched
Creates a new <GtkUriLauncher> object.
Passed, or left out: a string, or #f.
the uri to open
Returned: a <GtkUriLauncher>.
the new <GtkUriLauncher>
Sets the uri that will be opened.
Passed: a <GtkUriLauncher>.
an uri launcher
Passed, or left out: a string, or #f.
the uri