gio.AppLaunchContext — Application launch context.
class gio.AppLaunchContext(gobject.GObject): |
The gio.AppLaunchContext
is used for integrating the launch with the launching application. This is used to handle for
instance startup notification and launching the new application on the same screen as the launching window.
gio.AppLaunchContext()
Returns : | a new
gio.AppLaunchContext .
|
Creates a new application launch context. This is not normally used, instead
you instantiate a subclass of this, such as
gtk.gdk.AppLaunchContext
def get_display(info
, files
)
| a
gio.AppInfo
|
| a list of
gio.File
objects. |
Returns : | a display string for the display. |
The get_display
() method gets the display
string for the display. This is used to ensure new applications
are started on the same display as the launching application.
def get_startup_notify_id(info
, files
)
| a
gio.AppInfo
|
| a list of
gio.File
objects. |
Returns : | a startup notification ID for the application,
or None if not supported.
|
The get_startup_notify_id
() method initiates
startup notification for the application and returns the DESKTOP_STARTUP_ID
for the launched operation, if supported.
Startup notification IDs are defined in the FreeDesktop.Org Startup Notifications standard.
def launch_failed(startup_notify_id
)
| the startup notification id that was returned by
get_startup_notify_id .
|
Returns : | a startup notification ID for the application,
or None if not supported.
|
The get_startup_notify_id
() method is called
when an application has failed to launch, so that it can cancel the application
startup notification started in
get_startup_notify_id