Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Got an "error launching browser". Chrome already installed. #7372

Closed
andruska opened this issue Apr 1, 2014 · 22 comments
Closed

Got an "error launching browser". Chrome already installed. #7372

andruska opened this issue Apr 1, 2014 · 22 comments

Comments

@andruska
Copy link

andruska commented Apr 1, 2014

"Error launching browser
An error occurred when launching the browser. (error Unknown) Form more information, see Toubleshooting Live Preview connection errors."

This error occurs after fresh install with first sample page. Chrome is already installed (but after i installed Brackets).

How can I start resolving this ?

@andruska
Copy link
Author

andruska commented Apr 1, 2014

sprint 37 experimental build 0.37.0-0

Linux 3.10.33-2-MANJARO #1 SMP Tue Mar 18 20:18:14 UTC 2014 i686 GNU/Linux

@peterflynn
Copy link
Member

@andruska Can you go to Debug > Show Developer Tools and look in the Console log for additional error messages? There should be a more detailed error logged there.

@andruska
Copy link
Author

andruska commented Apr 2, 2014

Menu item Debug > Show Developer Tools doesnt give any feedback, console doesnt appear. Also when pressing F12.

When keeping Chrome open (before starting Brackets) and Reloading Without Extension gives no effect (for Live Preview).

@peterflynn
Copy link
Member

@andruska I'm not sure what you mean by "console doesn't appear" -- does the dev tools UI not open in a new Chrome tab when you select that menu item? Or the tab opens but it's blank?

If it's the latter, do you have any security/firewall software installed on your machine? It may be blocking all socket connections on the Brackets process, which would break both Live Preview and the dev tools -- see #6282. Can you try disabling your security software temporarily to test if that's the cause of the problem?

@andruska
Copy link
Author

andruska commented Apr 4, 2014

@peterflynn There is no any effects or changes on screen at all when choosing Debug > Show Developer Tools or pressing F12. Even if Chrome and Brackets are both open and FW disabled. No any tools UI or new tab in Chrome.

@peterflynn
Copy link
Member

@andruska Interesting, sounds like Brackets is simply unable to find & launch Chrome at all. What is the command line you would use to launch Chrome from a terminal on your machine? Does just typing google-chrome work, from any folder?

@andruska
Copy link
Author

andruska commented Apr 4, 2014

@peterflynn Now problems with Live preview and Show Developer Tools seem to be solved. Problems caused by /bin/google-chrome-stable symlink. /bin/google-chrome is correct.
Thanks Peter !

@peterflynn
Copy link
Member

Glad to hear it! Closing since problem is solved.

If you can, could you post a little more detail about what you changed to get it working? Might be useful for others who run into the same problem.

@suneelmanyam
Copy link

I am also having the same can u please help me in this @andruska

@andruska
Copy link
Author

Probably you need to change Chrome executable symlink in /bin directory. Changing /bin/google-chrome-stable to /bin/google-chrome solved my problem.

@wedeluxe
Copy link

wedeluxe commented Dec 3, 2014

Thank you so much for this thread!

I ran into the very same problem. On my Arch Linux box I did a fresh install of the package brackets-bin, then installed the package google-chrome (both from the AUR). When trying to start Live Preview all I got was that dialog box saying "An error occurred when launching the browser (error unknown) ..."

This is the already existing symlink I found in the bin directory:
/bin/google-chrome-stable -> /opt/google/chrome/google-chrome

I can confirm that adding a second symlink
/bin/google-chrome -> /opt/google/chrome/google-chrome
fixes the issue. Starting Live Preview works like a charm.

@steezeburger
Copy link

This seems to be an Arch thing.

Just for clarification:

ln -s /opt/google/chrome/google-chrome /bin/google-chrome

Note: you will probably need to run as root

This adds the proper symlink. Confirmed working Linux 3.17.4-1 MANJARO

@mearaj
Copy link

mearaj commented Jan 8, 2016

Thanks....this forum solved my issue....

@bobv
Copy link

bobv commented Jan 26, 2016

Steezeburger, yo da man!!! Thanks!

@alexander-mart
Copy link

@steezeburger Thanks!!! It's work!

@DanranWf
Copy link

@GreenRobot777 , I have met the same problem,but cant understand how to find the bin directory; can you tell me how to solve this problem in detail?

@steezeburger
Copy link

@DanranWf I used complete paths in my snippet so it should work. /bin is actually where you're creating a symlink. You won't find Chrome there before running this command.

@bhill010
Copy link

Hi,
I am not a technical guy and have no idea how you guys are changing the /bin directory--and I honestly don't know what that is. But when I try live preview it tells me that it could not locate Chrome, even though I have Chrome Canary installed (normal Chrome crashes my computer). Could anyone help me out with how to go about doing the /bin fix? I do not even know where to start to even do that.

@redmunds
Copy link
Contributor

@bhill010 In general, only stable Chrome is supported for Live Preview. FYI, canary and stable versions are changing all the time, so you might want to try the latest stable version.

If you still can't run stable Chrome, try turning on File > Enable Experimental Live Preview which works with any browser. I opens in your default browser and you can paste the url into any other browser.

@edgardo001
Copy link

Excellent, tested with Manjaro 4, Chrome 54 and Brackets 1.8, you must only create a symbolic link:

sudo ln -s / bin / google-chrome-stable / bin / google-chrome

@AyoungDukie
Copy link

AyoungDukie commented Jan 8, 2017

Can also confirm that the "sudo ln -s ..." command to create the symlink in /bin works under the latest Solus (2017.01.01.0). Thanks everyone!

@pcallycat
Copy link

Was glad to find this as it helped correct my issues. One thing to note though, it's not traditional to create symlinks in /bin for non-system software.
sudo ln -s /opt/google/chrome/google-chrome /usr/local/bin/google-chrome
will create the appropriate symlink on arch linux and keep the symlink in a standard location.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

15 participants