gpt4 book ai didi

ssh - xdotool 无法通过 SSH 工作

转载 作者:行者123 更新时间:2023-12-02 13:45:43 25 4
gpt4 key购买 nike

我想通过 SSH 使用 xdotool 但收到以下错误:

Error: Can't open display: (default)

我找到了这个解决方案:
export DISPLAY='0:0'

仍然得到几乎相同的错误:(。我也试过:
export DISPLAY=:0; or: export DISPLAY="0:0", ...

总是这样的错误:
Error: Can't open display: (0:0)

Thera 是 xdotool 的替代(工作)解决方案吗?

我不知道它是否有效。我只有一个 SSH 连接。

最佳答案

export DISPLAY=:0.0 && xdotool key a

试试这个 =)

关于ssh - xdotool 无法通过 SSH 工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24464294/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com