The second part could probably be implemented by patching some part of the ISO file, so that once the live session starts, it also downloads and installs the named package, and then runs the executable.
For the first part, it looks like lp:start-hacking already has some code for identifying the package for an open window.
I am not sure how one would go about cloning the process's "environment", though.
The second part could probably be implemented by patching some part of the ISO file, so that once the live session starts, it also downloads and installs the named package, and then runs the executable.
For the first part, it looks like lp:start-hacking already has some code for identifying the package for an open window.
I am not sure how one would go about cloning the process's "environment", though.