Easy way for a Linux process to launch sub-process within the Proton environment

未关闭
#10,380 0 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp, linux

调研方向

Start from the proton launcher script and how it hands the game to the pressure-vessel container runtime, since that boundary is what the request wants to cross. Read the referenced issue ValveSoftware/Proton#7208 for the existing compatibility complaints, then sketch how a native Linux parent could invoke a Windows child through the same runtime. Done means a documented, supported way to do this without disabling Proton for the depot.

由索引模型根据 Issue 内容生成。

描述

Feature Request

Feature Request

I confirm:

  • that I haven't found another request for this feature.
  • that I have checked whether there are updates for my system available that
    contain this feature already.

Description

We're developing a game which has a multi-process architecture. Our main engine is a Linux native .NET 10 process, however the renderer is a separate process based on Unity, which currently only works properly on Windows and thus relies on Proton to run for Linux users.

To achieve this, we distribute our game as Windows Depot, which includes Linux binaries. If launched on Linux, we escape the Proton environment to launch the main .NET 10 process, but keep the renderer launched under Proton. This works fine for the most part, but the .NET 10 process still exists in the Steam Pressure Environment, which has some issues.

We considered an alternative approach, where we'd just launch the native Linux .NET 10 process directly and have it launch the renderer process inside of the Proton environment.

However from our research, we didn't find a way to do this easily - distributing Linux depot seems to just disable Proton outright for our game.

Would it be possible to introduce a mode where a Linux process can still easily launch Windows subprocesses within Proton, while existing outside of its environment?

Justification [optional]

We distribute our game on Steam, which automatically installs and sets up Proton on the machine for the install.

We would like this to just work out of box for our Steam users, without any manual setup on their end.

Also I apologize if this isn't right place to ask this! I wasn't sure where else this request would go.

Risks

Main risk I can see with this is that it's probably pretty niche feature that might require substantial amount of work, so there might not be much benefit to other developers from this.

I do see some benefit in being able to launch Windows processes from otherwise native Linux games. We ourselves bundle a few other Windows-only utilities that we also launch within Proton environment, so it might be useful to others as well, but I do feel that what I'm asking for is still probably pretty niche - but I thought it'd be worth an ask at least.

References [optional]

Here's issue specific for compatibility issues with our game: https://github.com/ValveSoftware/Proton/issues/7208

主要语言
C++
星标
33.4k
派生
1.8k
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ValveSoftware/Proton 的其他 Issue

查看 ValveSoftware/Proton 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。