xdotool无法在redhat上检测到无头的Firefox

时间:2019-06-24 11:14:35

标签: redhat xdotool

Xdotool无法控制以(-headless,-marionette)args开头的无头firefox实例。

我尝试过: xdotool搜索Firefox

结果: 默认为搜索窗口名称,类和类名称。

# ps -ef |grep firefox
root     26978 26956 80 13:07 ?        00:00:04 /usr/lib64/firefox/firefox -marionette -devtools -headless -foreground -no-remote -profile /tmp/rust_mozprofile.4opdLmN4k4Kh
root     27087 26978  9 13:08 ?        00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0|74:0|236:1| -boolPrefs 5:0|61:1|81:1|235:0|277:0|280:0|303:0| -stringPrefs 289:36;891fda99-943a-4201-9d2d-10d20e19cbe4| -schedulerPrefs 0001,2 -greomni /usr/lib64/firefox/omni.ja -appomni /usr/lib64/firefox/browser/omni.ja -appdir /usr/lib64/firefox/browser 26978 tab
root     27225 26978 20 13:08 ?        00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 2 -isForBrowser -intPrefs 42:0|44:0|74:0|236:1| -boolPrefs 5:0|61:1|81:1|235:0|277:0|280:0|303:0| -stringPrefs 289:36;891fda99-943a-4201-9d2d-10d20e19cbe4| -schedulerPrefs 0001,2 -greomni /usr/lib64/firefox/omni.ja -appomni /usr/lib64/firefox/browser/omni.ja -appdir /usr/lib64/firefox/browser 26978 tab
root     28163  6735  0 12:13 pts/0    00:00:00 /bin/sh /usr/bin/xvfb-run -s :99 -auth /tmp/xvfb.auth -ac -screen 0 1920x1080x24 firefox -headless -marionette
root     28205 28163  0 12:13 pts/0    00:00:08 /usr/lib64/firefox/firefox -headless -marionette
root     29630  6735  0 13:08 pts/0    00:00:00 grep --color=auto firefox
root     29773 28205  0 12:14 pts/0    00:00:00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -boolPrefs 303:0| -stringPrefs 289:36;65ada97a-bd97-4caa-8ca0-591ccabedcf1| -schedulerPrefs 0001,2 -greomni /usr/lib64/firefox/omni.ja -appomni /usr/lib64/firefox/browser/omni.ja -appdir /usr/lib64/firefox/browser 28205 tab
# xdotool search firefox
Defaulting to search window name, class, and classname

看到许多实例正在运行,但是找不到任何窗口

也尝试过:

# xdotool getactivewindow
Your windowmanager claims not to support _NET_ACTIVE_WINDOW, so the attempt to query the active window aborted.
xdo_get_active_window reported an error

0 个答案:

没有答案