Class
GtkFileLauncher
Description [src]
final class Gtk.FileLauncher : GObject.Object {
/* No available fields */
}
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 gtk_file_launcher_launch()
function.
This API follows the GIO async pattern, and the result can be obtained by
calling gtk_file_launcher_launch_finish()
.
To launch uris that don’t represent files, use GtkUriLauncher
.
Available since: | 4.10 |
Instance methods
gtk_file_launcher_get_always_ask
Returns whether to ask the user to choose an app for opening the file.
Available since: 4.12
gtk_file_launcher_launch_finish
Finishes the gtk_file_launcher_launch()
call and
returns the result.
Available since: 4.10
gtk_file_launcher_open_containing_folder
Launch a file manager to show the file in its parent directory.
Available since: 4.10
gtk_file_launcher_open_containing_folder_finish
Finishes the gtk_file_launcher_open_containing_folder()
call and returns the result.
Available since: 4.10
gtk_file_launcher_set_always_ask
Sets whether to awlays ask the user to choose an app for opening the file.
If FALSE
, the file might be opened with a default app or the previous choice.
Available since: 4.12
Properties
Gtk.FileLauncher:always-ask
Whether to ask the user to choose an app for opening the file. If FALSE
,
the file might be opened with a default app or the previous choice.
Available since: 4.12