Skip to content

Optionally shut down and relaunch container

Simon McVittie requested to merge wip/restart-container into master

Tracked as T25223 internally.

/cc @denittis


  • .gitignore: Ignore depot/var/

    This is used for transient copies of the runtime (in some modes) and might be used for logging later.

  • _start-container-in-background: Exit unsuccessfully if no socket

    If we don't find the socket, we are not going to be able to communicate with the launcher, so we had better try to terminate it, print an error message and exit.

    Partially addresses steam-runtime#300.

  • _v2-entry-point: Optionally shut down and relaunch container

    The waitforexitandrun verb is the first opportunity we get to know what our final environment variables are. It's also the first time we get run under "adverb" wrappers, if any, such as taskset.

    Proton uses a single set of Wine services to run the setup commands, then shuts them down and relaunches everything for the actual game; we can do similarly here. However, the startup time cost of doing this could be significant, so it's currently off by default so that we can experiment with it. Run with PRESSURE_VESSEL_RELAUNCH_CONTAINER=1 to try it.

    Partially addresses steam-runtime#304.

    Resolves: T25223

Merge request reports

Loading