It derives from <GObject>.
Asynchronous API to open a file with an application.
<GtkFileLauncher> collects the arguments that
are needed to open the file.
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 file-launcher:launch function.
To launch uris that don’t represent files, use
<GtkUriLauncher>.
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.
Its value is a boolean.
Set it with (set! (file-launcher:always-ask self) value).
The file to launch.
Its value is a <GFile>, or #f.
Set it with (set! (file-launcher:file self) value).
Whether to make the file writable for the handler.
Its value is a boolean.
Set it with (set! (file-launcher:writable self) value).
Returns whether to ask the user which app to use.
Passed: a <GtkFileLauncher>.
a file launcher
Returned: a boolean.
true if always asking the user
Gets the file that will be opened.
Passed: a <GtkFileLauncher>.
a file launcher
Returned: a <GFile>, or #f.
the file
Returns whether to make the file writable for the handler.
Passed: a <GtkFileLauncher>.
a file launcher
Returned: a boolean.
true if the file will be made writable
Launches an application to open the file.
This may present an app chooser dialog to the user.
Passed: a <GtkFileLauncher>.
a file launcher
Passed, or left out: a <GtkWindow>, or #f.
the parent window
Passed, or left out: a <GCancellable>, or
#f.
a cancellable to cancel the operation
Passed, or left out: a procedure, or #f.
a callback to call when the operation is complete
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
data to pass to callback
Finishes the file-launcher:launch call
and returns the result.
Passed: a <GtkFileLauncher>.
a file launcher
Passed: a <GAsyncResult>.
the result
Returned: a boolean.
true if an application was launched
Creates a new <GtkFileLauncher> object.
Passed, or left out: a <GFile>, or #f.
the file to open
Returned: a <GtkFileLauncher>.
the new <GtkFileLauncher>
Launches a file manager to show the file in its parent directory.
This is only supported for native files. It will fail if file is e.g. a http:// uri.
Passed: a <GtkFileLauncher>.
a file launcher
Passed, or left out: a <GtkWindow>, or #f.
the parent window
Passed, or left out: a <GCancellable>, or
#f.
a cancellable to cancel the operation
Passed, or left out: a procedure, or #f.
a callback to call when the operation is complete
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
data to pass to callback
Finishes the file-launcher:open-containing-folder call and
returns the result.
Passed: a <GtkFileLauncher>.
a file launcher
Passed: a <GAsyncResult>.
the result
Returned: a boolean.
true if an application was launched
Sets whether to always ask the user which app to use.
If false, the file might be opened with a default app or the previous choice.
Passed: a <GtkFileLauncher>.
a file launcher
Passed: a boolean.
whether to always ask
Sets the file that will be opened.
Passed: a <GtkFileLauncher>.
a file launcher
Passed, or left out: a <GFile>, or #f.
the file
Sets whether to make the file writable for the handler.
Passed: a <GtkFileLauncher>.
a file launcher
Passed: a boolean.
whether to make the file writable