【发布时间】:2012-09-03 18:51:04
【问题描述】:
我正在尝试在 debian 挤压机的 Xvfb 服务器中获取窗口列表。 我正在做的是:
$ Xvfb :2&
$ DISPLAY=:2; wmctrl -l
但是我收到了这个错误:
Cannot get client list properties. (_NET_CLIENT_LIST or _WIN_CLIENT_LIST)
这是正常的还是我错过了什么?
谢谢!!
【问题讨论】:
-
DISPLAY=:2 xwininfo -tree -root的结果是什么? -
结果它
xwininfo: Window id: 0xe8 (the root window) (has no name) Root window id: 0xe8 (the root window) (has no name) Parent window id: 0x0 (none) 0 children. -
我在启动 Xvfb 时也收到此消息:
SELinux: Disabled on system, not enabling in X server -
@AndreySidorov 感谢您的回答!!。你的命令有效。现在我知道 wmctrl -l 仍然不起作用,因为我还没有在 :2 中启动窗口管理器。一旦我启动它,就会支持 _NET_CLIENT_LIST
-
@sgimeno:很高兴你让它工作了。我遇到了同样的问题。您能否详细说明您是如何启动哪个窗口管理器的?