The ftrack.connect.application.launch synchronous event is triggered when an
application is launched using the
It can be used to modify the environment and arguments used when launching
Example event passed to hook:
Event( topic='ftrack.connect.application.launch', data=launch_data )
The passed data variable, launch_data is a dictionary containing:
- The first arugment passed to subprocess.Popen, containing a
listof the command should run.
- A dictionary with keyword arguments passed to subprocess.Popen.
- A dictionary containing information about the application that is being launched.
- The ftrack entity context that the application is being launched for.
Modifications to the launch_data dictionary, either by replacing the content or modifying it directly, will be picked up and used by the application launcher.