为什么在 VM 中启动 firefox(从命令行)会在主机中启动 firefox,反之亦然?

Don*_*ild 5 ssh firefox

我有一台 SLED 10 主机,我正在使用 SLES 10 VM 通过ssh -X.

当我firefox在我的 VM 中启动时,firefox &它会运行firefox安装在 VM 中的程序。所以没关系。

但是,如果我的主机firefox正在运行,然后我启动了 VM firefox,那么主机的新会话将firefox开始运行,而不是自己启动。

同样的情况也以相反的方式发生,如果 VMfirefox正在运行,那么我将无法启动主机的firefox.

ter*_*don 5

因为出于某种原因,firefox 开发人员认为这是一个好主意。事实上,他们非常确定这是一项功能而不是错误,他们甚至提供了禁用它的选项。尝试跑步

firefox -no-remote
Run Code Online (Sandbox Code Playgroud)

这应该会导致在远程机器上启动一个新实例。有关(一点点)更多信息,请尝试firefox -h

-no-remote         Do not accept or send remote commands; implies -new-instance.
-new-instance      Open new instance, not a new window in running instance.
Run Code Online (Sandbox Code Playgroud)

这让我完全困惑了一段时间,我仍然不明白他们为什么(或者,就此而言,如何)这样做。