【发布时间】:2016-12-23 09:17:20
【问题描述】:
出于测试目的,我使用了 Xvfb。 今天,我想用 wmctrl 命令做一些测试。我在 python 中做了一些这样的测试:
display = ":99"
pXvfb = subprocess.Popen(["Xvfb", display, "-screen", "0", "1024x768x24"])
# wait that xvfb is up
time.sleep(1)
os.environ["DISPLAY"] = display
p = subprocess.Popen( ["wmctrl", "-l" ] )
p.wait()
pXvfb.terminate()
在这个测试中,wmctrl 说:
Cannot get client list properties.
(_NET_CLIENT_LIST or _WIN_CLIENT_LIST)
我认为这很正常,因为我的 Xvfb 上没有附加任何窗口管理器。
如何启动 Windows 管理器 (Enlighenment should be good for my case) 来只管理 Xvfb ?
【问题讨论】:
标签: xvfb window-managers xserver