Package: gio
Function gio:app-info-launch
Lambda Listgio:app-info-launch (info files context) ArgumentsReturn ValueTrue on successful launch, false otherwise. Details
Launches the application. Passes files to the launched application as arguments, using the optional context argument to get information about the details of the
application launcher, like what screen it is on. To launch the application without arguments pass nil for the 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 g:file object, 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 the g:app-info-launch-uris function instead. The launched application inherits the environment of the launching process, but it can be modified with the g:app-launch-context-setenv function and the g:app-launch-context-unsetenv function. On UNIX, this function sets the GIO_LAUNCHED_DESKTOP_FILE environment variable with the path of the launched desktop file and GIO_LAUNCHED_DESKTOP_FILE_PID to the process ID of the launched process. This can be used to ignore GIO_LAUNCHED_DESKTOP_FILE, should it be inherited by further processes. The DISPLAY and DESKTOP_STARTUP_ID environment variables are also set, based on information provided in context. | See also |
2024-12-22