我正试图通过命令行使用Google Chrome 59 (谷歌浏览器59.0.3071.86)的新功能在Centos 7盒中获取屏幕截图,我收到一条错误消息,说它无法获取下载目录.我试图在我的主文件夹中创建目录但没有成功!有什么建议?
[root@vm_1 ~]# google-chrome-stable --headless --disable-gpu --enable-logging -v=5 --screenshot=out.png http://www.google.com
[0613/154943.103775:VERBOSE1:zygote_main_linux.cc(626)] ZygoteMain: initializing 0 fork delegates
[0613/154943.104006:INFO:cpu_info.cc(50)] Available number of cores: 1
[0613/154943.108816:VERBOSE1:audio_manager_pulse.cc(273)] Failed to connect to the context. Error: Connection refused
[0613/154943.108868:WARNING:audio_manager.cc(293)] Multiple instances of AudioManager detected
[0613/154943.108875:WARNING:audio_manager.cc(254)] Multiple instances of AudioManager detected
[0613/154943.109345:VERBOSE1:webrtc_internals.cc(106)] Could not get the download directory.
Trace/breakpoint trap
[root@vm_1 ~]# google-chrome-stable --version
[root@vm_1 ~]# Google Chrome 59.0.3071.86
Run Code Online (Sandbox Code Playgroud)
这是我的文件夹结构:
[root@vm_1 ~]# ls -la
total 56
dr-xr-x---. 12 root root 4096 Jun …Run Code Online (Sandbox Code Playgroud)