Application.open

void open(gio.file.File[] files, string hint)

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.

Parameters

filesan array of #GFiles to open
hinta hint (or ""), but never null