【发布时间】:2015-09-29 03:52:09
【问题描述】:
我有一个在 Kiosk 模式下运行的 Chromium。 我想通过 SSH 更改页面的 URL
如果不是 Kiosk 模式,我会使用 xdotool:
export DISPLAY=":0"
WID=$(xdotool search --onlyvisible --class chromium|head -1)
xdotool windowactivate ${WID}
xdotool key ctrl+l
xdotool type 'www.example.org'
xdotool key Return
但这不起作用。可能是因为它处于信息亭模式。
除此之外,我的 xdotools 工作正常
export DISPLAY=":0"
WID=$(xdotool search --onlyvisible --class chromium|head -1)
xdotool windowactivate ${WID}
xdotool key ctrl+F5
刷新我的页面
也许 xdotool 不适合这种情况?
【问题讨论】:
-
您是否尝试发出命令“chromium-browser $URL”?通常,窗口会附加到现有窗口(在新选项卡中)并打开指定的 URL。
标签: ssh debian chromium kiosk xdotool