rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
453 stars 14 forks source link

Add a way to not open a new browser when using `rio run` #48

Open mad-moo opened 3 weeks ago

mad-moo commented 3 weeks ago

Having a new browser window open each time when rio run is executed can be quite annoying, especially for projects that necessitate frequent restarts. Add a way to prevent this from happening.

I see two options for this:

  1. Add a flag. This is probably the way to go, but is a bit annoying because it needs specifying each time
  2. Add a configuration option to rio.toml. The issue with this one is that this preference really depends on the developer, so adding it to the project-wide rio.toml could lead to conflicts
mad-moo commented 3 weeks ago

I have removed the automatic opening of the browser entirely for now. If anyone wants the browser to open, it's just one click into the terminal away anyway.

mad-moo commented 3 weeks ago

I don't know what the best approach here is. Never open the browser? Always open it? Have it configured on a per-project basis? Add it to the per-user rio config?

Sn3llius commented 2 weeks ago

I prefer when it opens automatically. Otherwise, configuring it on a per-project basis would be a good alternative for me.