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
Returns whether to ask the user to choose an app for opening the file.
Returns whether to make the file writable for the handler.
Finishes the method@Gtk.FileLauncher.launch call and returns the result.
Launch a file manager to show the file in its parent directory.
Finishes the method@Gtk.FileLauncher.open_containing_folder call and returns the result.
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.
Sets whether to make the file writable for the handler.