如果我去cd /Applications/Firefox.app/Contents/MacOS
然后运行./firefox -new-window http://google.com
它会打开一个新版本的firefox,所以我必须同时打开,这不是我想要的,我想要它在开放的Firefox中。然后我尝试使用open
它可以打开新标签,但我无法打开新窗口。如果我运行open -a firefox -new-window http://google.com
它提供了一个错误,即新窗口不是现有参数。 所以然后我试着open -a firefox --args -new-window http://google.com
,但没有任何反应,它只是将应用程序的焦点转移到Firefox。如果我运行open -a firefox --args http://google.com
什么也没有发生。当open -a firefox --args -url http://google.com
不起作用。 资源述略我已经看过 https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options https://superuser.com/questions/277565/start-firefox-from-terminal-on-mac-os-x-snow-leopard如何在mac上用终端在firefox中打开新窗口
0
A
回答
-1
也许这可能对您有用:
open -n /Applications/Firefox.app
的-n
选项允许在新窗口打开
可能你得到一个错误类似这个: “Firefox的副本已经打开,一次只能打开一份Firefox的副本”
在这种情况下,需要删除的文件.parentlock
,你可以找到它:
cd ~/Library/Application\ Support/Firefox/Profiles
ls -l
cd <your profile>.default
rm -rf .parentlock
,然后再试一次:open -n /Applications/Firefox.app
相关问题
- 1. 无法在mac终端上打开别名以在新窗口中打开emacs
- 2. 如何在Mac OS X上自动打开终端窗口
- 3. 如何在Mac上打开端口80?
- 4. 如何获取MinTTY(Cygwin终端)在新窗口中打开gvim?
- 5. 如何让MinTTY(Cygwin终端)在新窗口中打开Emacs?
- 6. Mac - 在终端中列出打开的窗口
- 7. 在新的终端窗口中打印
- 8. 如何从mac终端打开一个窗口
- 9. 如何在Mac上打开VS代码打开窗口导航
- 10. 如何使用fork()打开一个新的终端窗口?
- 11. 如何在php中打开终端窗口并执行命令?
- 12. 如何在php中打开终端窗口
- 13. 在python上的macplotlib在mac上打开一个新窗口
- 14. 使用Java打开终端窗口
- 15. 在终端mac中打开mamp mysql
- 16. 如何使终端窗口在mac上的后台运行
- 17. 如何在新窗口中打开textarea?
- 18. 如何在C中打开新窗口#
- 19. 如何打开的窗口上的git终端
- 20. 在Mac上使用Selenium WebDriver在Firefox中打开新选项卡
- 21. .bash_login文件未在新的终端窗口中加载,或者在关闭终端并重新打开后
- 22. 如何在firefox中使用vimperator打开下载窗口
- 23. 如何在Mac 10.7.5上打开端口443?
- 24. 如何打开新窗口
- 25. 如何打开新终端和新的终端使用python
- 26. 如何在当前窗口中打开IDEA 11新窗口
- 27. 如何在mac 10.4中从终端打开SMB共享?
- 28. 在python中打开新窗口(如vim)
- 29. 在新窗口中打开窗体
- 30. 在同一窗口中打开终端(Ubuntu)
后来我得到一个[错误](HTTP:// imgur .com/Pqd5JpS) –
@ J.Eng检查更新,我希望这可以帮助你 – elmigue017