Learn R Programming

RGtk2 (version 2.20.31)

gAppInfoLaunch: gAppInfoLaunch

Description

Launches the application. Passes files to the launched application as arguments, using the optional launch.context to get information about the details of the launcher (like what screen it is on). On error, error will be set accordingly.

Usage

gAppInfoLaunch(object, files, launch.context, .errwarn = TRUE)

Arguments

object
files
a list of GFile objects
launch.context
.errwarn
Whether to issue a warning on error or fail silently

Value

A list containing the following elements:
retval
[logical] TRUE on successful launch, FALSE otherwise.
error
a GError

Details

To lauch the application without arguments pass a NULL files list. Note that even if the launch is successful the application launched can fail to start if it runs into problems during startup. There is no way to detect this. Some URIs can be changed when passed through a GFile (for instance unsupported uris with strange formats like mailto:), so if you have a textual uri you want to pass in as argument, consider using gAppInfoLaunchUris instead.