Earlier quoted context omitted.
It's often literally not possible to ship everything. You wouldn't want to spin up a second X11 (or Wayland) server, for example, because you can't have two of them talk to the same video card device at the same time usefully.
The number of things that can't be shipped is extremely small. And I don't think that Docker is a silver bullet for Wayland vs X11 issues? Although I'm not sure about the fine details as I don't have a ton of experience there. Shouldn't you be using an abstraction that can automatically support which ever is available? I tend to ship code that needs to run on Linux + macOS + Windows + Android. So Docker is a total no…
It's literally impossible to _not_ depend on the system path.