【问题标题】:Getting window list in Xvfb server在 Xvfb 服务器中获取窗口列表
【发布时间】: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:很高兴你让它工作了。我遇到了同样的问题。您能否详细说明您是如何启动哪个窗口管理器的?

标签: linux debian x11 xvfb


【解决方案1】:

我有类似的问题。我的情况是 xfce-panel 没有配置。 最后我执行了:

sudo chmod -x /usr/bin/xfce4-panel

这解决了问题(我不需要这个面板)。 这是一个肮脏的黑客。正确的方法是配置面板。

【讨论】:

    猜你喜欢
    • 2011-02-06
    • 2012-01-19
    • 1970-01-01
    • 1970-01-01
    • 2018-07-24
    • 1970-01-01
    • 1970-01-01
    • 2018-06-25
    相关资源
    最近更新 更多