[英]Opening file urls from the command line on OSX
When I run 当我跑步
open file:///Users/me/somefile.html#bar
It switches to Chrome (my default browser) but doesn't actually open the file. 它会切换到Chrome(我的默认浏览器),但实际上不会打开文件。 What gives?
是什么赋予了? Is there any way to make this work?
有什么办法可以使这项工作吗?
I don't want any solutions that hard-code the use of Chrome. 我不希望任何解决方案对Chrome的使用进行硬编码。
Unfortunately this seems to be a bug in Chrome. 不幸的是,这似乎是Chrome中的错误。 I tried it with
open -a Firefox file:///...
and it works fine. 我用
open -a Firefox file:///...
尝试过,它工作正常。
Edit: Restarted Chrome and now it works. 编辑:重新启动Chrome,现在可以使用了。 Very odd.
很奇怪。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.