How can I set Chrome as default external browser in Eclipse for Mac?

后端 未结 9 1925
醉话见心
醉话见心 2021-01-04 10:35

I think that question is self-explained :-)

When I browse to Application eclipse send me an error.

相关标签:
9条回答
  • 2021-01-04 11:33

    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 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.
    
    0 讨论(0)
  • 2021-01-04 11:33

    I posted the answer on another question like this on stackoverflow, so here it goes:

    I found the solution in a blog's post that doesn't exist anymore, it involves configuring the Location to be '/usr/bin/open' and the parameter is '%URL%'.

    You need to make sure that google chrome is your default browser and it will work properly. This is the only method that worked for me on OSX Lion.

    0 讨论(0)
  • 2021-01-04 11:39

    I solved this by calling /usr/bin/open -a "/Applications/Google Chrome.app" <url>

    0 讨论(0)
提交回复
热议问题