用户登录
用户注册

分享至

如何在 Eclipse for Mac 中将 Chrome 设置为默认外部浏览器?

  • 作者: 淡忘NB
  • 来源: 51数据库
  • 2023-01-14

问题描述

我认为这个问题不言自明:-)

I think that question is self-explained :-)

当我浏览到应用程序时,eclipse 向我发送一个错误.

When I browse to Application eclipse send me an error.

推荐答案

rubdottocom 几乎搞定了.问题是,路径包含空格.如果你写一个新的shell脚本,内容如下:

rubdottocom almost got it. The problem is, that the path contains spaces. If you write a new shell script with the following content:

'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' $1

Eclipse 可以使用它启动一个新的 Chrome 实例.遗憾的是,这种方式无法在已运行的实例中打开新选项卡,因为脚本退出并显示以下错误消息:

Eclipse can launch a new Chrome instance with it. Sadly, this way it is not possible to open a new tab in an already running instance, as the script exits with the following error message:

[21043:2307:292361872340725:ERROR:process_singleton_mac.cc(102)]
    Unable to obtain profile lock.
软件
前端设计
程序设计
Java相关