我只是启动 gedit 并尝试使用 xdotool 找到 gedit 窗口
xdotool 搜索“gedit”
有时它会给我一个窗口 ID,有时它会失败并显示
X Error of failed request: 20(X_GetProperty)
Major opcode of failed request: 20 (X_GetProperty)
可能是什么问题?我正在通过 vncviewer 访问运行此设置的机器。
最佳答案
您需要指定要搜索的内容的属性:
xdotool search --name "gedit"
关于linux - xdotool 窗口搜索随机失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10798241/