Package: gtk

Class gtk:file-launcher

Superclasses

gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

always-ask
The always-ask property of type :boolean (Read / Write)
Whether to ask the user to choose an application for opening the file. If false, the file might be opened with a default application or the previous choice. Since 4.12
Default value: false
file
The file property of type g:file (Read / Write)
The file to launch. Since 4.10
writable
The writable property of type gboolean (Read / Write)
Whether to make the file writable for the handler. Since 4.14
Default value: false

Details

The gtk:file-launcher 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 the gtk:file-launcher-launch-finish function.

To launch uris that do not represent files, use the gtk:uri-launcher class.

Since 4.10
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2024-5-26