FileLauncher


Object Hierarchy:

Gtk.FileLauncher Gtk.FileLauncher Gtk.FileLauncher GLib.Object GLib.Object GLib.Object->Gtk.FileLauncher

Description:

[ CCode ( type_id = "gtk_file_launcher_get_type ()" ) ]
[ Version ( since = "4.10" ) ]
public sealed class FileLauncher : Object

A `GtkFileLauncher` object collects the arguments that are needed to open a file 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 [method@Gtk.FileLauncher.launch] function. This API follows the GIO async pattern, and the result can be obtained by calling [method@Gtk.FileLauncher.launch_finish].

To launch uris that don't represent files, use [class@Gtk.UriLauncher].


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members: