FileLauncher
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.
To launch uris that don't represent files, use class@Gtk.UriLauncher.
Since
4.10
Constructors
Functions
Link copied to clipboard
Finishes the method@Gtk.FileLauncher.launch call and returns the result.
Link copied to clipboard
open fun openContainingFolder(parent: Window? = null, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)
Launch a file manager to show the file in its parent directory.
Link copied to clipboard
open fun openContainingFolderFinish(result: <Error class: unknown class>): <Error class: unknown class><Boolean>
Finishes the method@Gtk.FileLauncher.open_containing_folder call and returns the result.