Open core-ai-bot opened 3 years ago
Comment by redmunds Wednesday Jan 22, 2014 at 15:30 GMT
@
RyanP41 Currently, the Live Preview and Show Developer Tools feature only work in the Chrome stable browser. So, even if you swapped in some other browser, it still would not work.
We hope to eventually get Brackets working with other browsers, but I'm curious as to why Chrome is prohibited. Is it for technical reasons?
Comment by njx Wednesday Jan 22, 2014 at 17:38 GMT
@
redmunds It sounds like he is running Chrome, just under a different executable name. So it would work if Brackets could find the executable.
Unfortunately, we search for the executable in native code, so you'd need to modify brackets-shell (https://github.com/adobe/brackets-shell). The change is trivial - in appshell_extensions_win.cpp, in the function GetPathToLiveBrowser(), you can see the strings where we hard-code the executable name.
Rebuilding the shell isn't too difficult if you're a little familiar with git/grunt - after cloning brackets-shell and brackets, you can build brackets-shell by just running a grunt script. See https://github.com/adobe/brackets-shell/wiki/Building-Brackets-Shell for details. When you've rebuilt the shell, you'll also need to symlink in the source - instructions for this are in the wiki page above, but I've found that to run the symlink script (setup for hacking) you need to run the command as administrator. (If you don't symlink it in, you can just run the shell and it will prompt you to locate the Brackets src/index.html file, but obviously it's a pain to do that each time.)
Comment by njx Wednesday Jan 22, 2014 at 17:39 GMT
BTW, we have a backlog item (https://trello.com/c/MYaUdJOR) to make the path to Chrome configurable - it's not a high priority right now though. I'm going to close this as move-to-backlog and add a link to the bug in that backlog item so we can note this (somewhat unusual) use case.
Comment by redmunds Wednesday Jan 22, 2014 at 17:48 GMT
Sorry, I missed that sublety. :) This section of the Brackets Troubleshooting guide specifies the Registry key where Brackets looks for the executable name on Windows.
Comment by RyanP41 Wednesday Jan 22, 2014 at 19:12 GMT
All: Yes basically the chrome executable is changed to a different name, its a hack I discovered so that I could get chrome working on my PC, because of the stupid application block the company had in effect. Its annoying but we deal with it. Anyways, thank you for responding, if its so deep in the coding than that's fine. I can still use Brackets effectively and am using now for coding because of how well it works, I just won't use the Live Preview for now which isn't a deal breaker.
Thanks for the information
Issue by RyanP41 Wednesday Jan 22, 2014 at 14:53 GMT Originally opened as https://github.com/adobe/brackets/issues/6611
This is not an issue with the program it so far runs awesome. I just wanted to ask a question, I am using it on my company laptop. The company prohibits the use of Google Chrome (yeah I know, ugh). However there is a hack to get it working but it requires changing the executable from chrome.exe to something else (I am currently using internet.exe), and that allows me to use Chrome. However when I try to use the live preview in Brackets, the program says it cannot find Chrome, I am assuming because it is looking for chrome.exe, is there anyway in a settings file somewhere maybe, that will allow me to change what exe file Brackets looks for to launch Chrome? Thanks! Ryan