"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 ?
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
@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.
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).
@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?
@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.
@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?
@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 !
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.
I am also having the same can u please help me in this @andruska
Probably you need to change _Chrome_ executable symlink in /bin directory. Changing /bin/google-chrome-stable to /bin/google-chrome solved my problem.
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.
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
Thanks....this forum solved my issue....
Steezeburger, yo da man!!! Thanks!
@steezeburger Thanks!!! It's work!
@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?
@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.
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.
@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.
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
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!
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.
Most helpful comment
This seems to be an Arch thing.
Just for clarification:
Note: you will probably need to run as root
This adds the proper symlink. Confirmed working Linux 3.17.4-1 MANJARO