X11:获取显示器上所有 gnome 终端窗口的列表?

发布于 2024-07-25 14:02:36 字数 242 浏览 5 评论 0原文

我的 X 显示器上有两个 xterm 和几个处于活动状态的 gnome 终端窗口。

然而,xlsclients 仅显示一个 gnome 终端客户端。

$ xlsclients   
luban.local  /usr/X11/bin/xterm
ohm  gnome-terminal
luban.local  xterm

如何获取附加到我的显示器的 gnome 终端会话列表?

I have two xterms and several gnome-terminal windows active on my X display.

However, xlsclients only shows one gnome-terminal client.

$ xlsclients   
luban.local  /usr/X11/bin/xterm
ohm  gnome-terminal
luban.local  xterm

How can I get a list of the gnome-terminal sessions attached to my display?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

沩ん囻菔务 2024-08-01 14:02:37

此选项将在其自己的进程中并作为不同的 X 客户端运行新的终端窗口。

--disable-factory

这些选项

--instance=foo --class=bar

提供了一个方便的挂钩来区分会话:

$ xlsclients -l
...
Window 0x3000001:
  Machine:  ohm
  Name:  Terminal
  Icon Name:  foo
  Command:  foo
  Instance/Class:  foo/bar

This option will run the new terminal window in its own process and as a distinct X client.

--disable-factory

These options

--instance=foo --class=bar

provide a convenient hook to distinguish between sessions:

$ xlsclients -l
...
Window 0x3000001:
  Machine:  ohm
  Name:  Terminal
  Icon Name:  foo
  Command:  foo
  Instance/Class:  foo/bar
会发光的星星闪亮亮i 2024-08-01 14:02:37

这是对的; gnome-terminal(如 konsole)仅启动一个进程。 如果您请求第二个控制台,该进程将打开一个新窗口,但不会仅为该窗口启动另一个进程(与 xterm 不同)。 这节省了大量的内存和资源。

This is correct; gnome-terminal (like konsole) starts just a single process. If you ask for a second console, the process opens a new window but doesn't start another process just for that window (unlike xterm). This saves a lot of memory and resources.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文