Application.open

Opens the given files.

In essence, this results in the #GApplication::open signal being emitted in the primary instance.

n_files must be greater than zero.

hint is simply passed through to the ::open signal. It is intended to be used by applications that have multiple modes for opening files (eg: "view" vs "edit", etc). Unless you have a need for this functionality, you should use "".

The application must be registered before calling this function and it must have the gio.types.ApplicationFlags.HandlesOpen flag set.

class Application
void
open

Parameters

files gio.file.File[]

an array of #GFiles to open

hint string

a hint (or ""), but never null