Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Got an "error launching browser". Chrome already installed. #6650

Open
core-ai-bot opened this issue Aug 30, 2021 · 22 comments
Open

Comments

@core-ai-bot
Copy link
Member

Issue by andruska
Tuesday Apr 01, 2014 at 16:15 GMT
Originally opened as adobe/brackets#7372


"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 ?

@core-ai-bot
Copy link
Member Author

Comment by andruska
Tuesday Apr 01, 2014 at 16:17 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Wednesday Apr 02, 2014 at 00:17 GMT


@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.

@core-ai-bot
Copy link
Member Author

Comment by andruska
Wednesday Apr 02, 2014 at 11:02 GMT


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).

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Thursday Apr 03, 2014 at 22:25 GMT


@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?

@core-ai-bot
Copy link
Member Author

Comment by andruska
Friday Apr 04, 2014 at 09:14 GMT


@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.

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Friday Apr 04, 2014 at 18:57 GMT


@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?

@core-ai-bot
Copy link
Member Author

Comment by andruska
Friday Apr 04, 2014 at 20:09 GMT


@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 !

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Friday Apr 04, 2014 at 20:11 GMT


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.

@core-ai-bot
Copy link
Member Author

Comment by suneelmanyam
Friday Aug 22, 2014 at 06:33 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by andruska
Friday Aug 22, 2014 at 12:31 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by wedeluxe
Wednesday Dec 03, 2014 at 18:29 GMT


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.

@core-ai-bot
Copy link
Member Author

Comment by steezeburger
Friday Dec 12, 2014 at 18:32 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by mearaj
Friday Jan 08, 2016 at 10:50 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by bobv
Tuesday Jan 26, 2016 at 16:04 GMT


Steezeburger, yo da man!!! Thanks!

@core-ai-bot
Copy link
Member Author

Comment by alexander-mart
Friday Feb 05, 2016 at 13:51 GMT


@steezeburger Thanks!!! It's work!

@core-ai-bot
Copy link
Member Author

Comment by DanranWf
Wednesday Mar 30, 2016 at 07:04 GMT


@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?

@core-ai-bot
Copy link
Member Author

Comment by steezeburger
Wednesday Mar 30, 2016 at 07:44 GMT


@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.

@core-ai-bot
Copy link
Member Author

Comment by bhill010
Saturday May 28, 2016 at 18:40 GMT


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.

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Saturday May 28, 2016 at 23:46 GMT


@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.

@core-ai-bot
Copy link
Member Author

Comment by edgardo001
Tuesday Dec 06, 2016 at 12:00 GMT


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

@core-ai-bot
Copy link
Member Author

Comment by AyoungDukie
Sunday Jan 08, 2017 at 20:44 GMT


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!

@core-ai-bot
Copy link
Member Author

Comment by pcallycat
Thursday Feb 08, 2018 at 21:59 GMT


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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant