1

我只是启动 gedit 并尝试使用 xdotool 找到 gedit 窗口

xdotool search "gedit"

有时它会给我一个窗口 ID,有时它会失败

X Error of failed request: 20(X_GetProperty)
Major opcode of failed request: 20 (X_GetProperty)

可能是什么问题呢?我正在通过 vncviewer 访问运行此设置的机器。

4

1 回答 1

2

您需要指定要搜索的属性:

xdotool search --name "gedit"

于 2013-04-22T10:00:38.143 回答