Virtual Method

GioAppLaunchContextget_display

Declaration

char*
get_display (
  GAppLaunchContext* context,
  GAppInfo* info,
  GList* files
)

Description

Gets the display string for the context. This is used to ensure new applications are started on the same display as the launching application, by setting the DISPLAY environment variable.

Parameters

info

Type: GAppInfo

A GAppInfo.

The data is owned by the caller of the function.
files

Type: A list of None

A GList of GFile objects.

The data is owned by the caller of the function.

Return value

Type: char*

A display string for the display.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.