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.gAppInfoLaunch(object, files, launch.context, .errwarn = TRUE)
object
GAppInfo
files
list
of GFile
objectslaunch.context
GAppLaunchContext
or NULL
TRUE
on successful launch, FALSE
otherwise.error
GError
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.