-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fish_config web interface not loading #7158
Comments
fish_config
web interface not loading
If that line is blocking, then your system is misconfigured. This ordinarily does not block, so you should make it so your system doesn't. I'd check e.g. $BROWSER. |
I found this in here https://docs.python.org/3/library/webbrowser.html Looks like the behavior of Below is for
I noticed same behaviour in newly installed |
Okay, it seems like you're not using a "remote browser" (what an awful term). You should.. You're doing the equivalent of calling (note: If this was in any way common, we could be hacking around it. But since it's not, you should instead fix your config) |
No I'm not. In fact the problem is when there is no browser running at all. FYI:
If I manually open the browser before running Does that means that the user need to have the browser open before running |
So, when I do python -c 'import webbrowser; webbrowser.open("https://www.python.org")' This opens firefox, even if it is not running, and the python process exits. This is how I've always known it and we've not gotten any other bug reports about it. In your case, that's broken, for some reason. Possibly because of configuration in your browser. That would have to be fixed. |
Ahahahaha, yeah, it's a firefox-developer-edition thing (meaning it'll possibly show up in newer firefoxen) Yeah, we have to work around this. Blergh |
fish_config
is opening a tmp file on the browser but fails to start the web serverfish, version 3.1.2
OS: Arch Linux x86_64
Kernel: 5.6.13-arch1-1
Terminal: rxvt-unicode-256color
BROWSER env: firefox-developer-edition
python: Python 3.6.8
Steps to reproduce the problem:
This will open a tmp file
file:///tmp/web_configsomehashhere.html
on the browser(herefirefox-developer-edition
) which is supposed to Meta Refresh to a local web server but it just keeps loading.I've figured the issue is with this line responsible for opening the browser which is not returning until the browser is closed and blocking the web server from handing the request.
I've tried changing the code to open browser in a separate thread using
threading
lib and it worked.The text was updated successfully, but these errors were encountered: