jas-chen / atom-live-server

Launch a simple development http server with live reload capability.
https://atom.io/packages/atom-live-server
MIT License
121 stars 49 forks source link

.atom-live-server.json not loading. #253

Open eherrmann01 opened 4 years ago

eherrmann01 commented 4 years ago

Added .atom-live-server.json to project root to load chromium instead of default browser (firefox). It worked for a while then suddenly started loading the default browser at live server start.

waynongithub commented 4 years ago

I have the same problem using atom-live-server v2.3.0, in Atom 1.48.0, on Linux Mint 18.3. It seems related with issue #250 (When I try to run the atom-live-server package it always shows me live server is stopped, please tell me how to fix this #250).

My default browser if Firefox, I want atom-live-server to load in Google Chrome. When atom-live-server detects a .atom-live-server.json in the project root, it's behaviour changes depending on the json file:

json file empty -> live-server starts in default browser (firefox), the menu item "atom-live-server" remains as a menu item in menu > packages. Live-server opens multiple tabs in the browser, can be 2 can be 13.

{"browser":"firefox"} -> live-server starts in firefox, the menu item "atom-live-server" disappears from menu > packages. Here too, live-server opens in multiple tabs.

Any of the following combinations will not start the live-server and will pop up the message "live server is stopped", both with the ctrl-alt combinations and with package>atom-live-server>start.

{"browser":"chrome"} {"browser":"Chrome"} {"browser":"google chrome"} {"browser":"Google Chrome"} {"browser":"chromium"} {"browser":"Chromium"}

What should we call Google Chrome or Brave Browser in the json file?