-
Notifications
You must be signed in to change notification settings - Fork 322
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
Start browser using proc_play #2602
Conversation
Sorry that I just now got the time to test this after it is already merged, unfortunately it doesn't seem to work with Firefox on Windows:
The traceback looks a bit weird (handlers.py:143 before handlers.py:136), I suppose that the first line is raising this very exception that only starts with the second line in the traceback.
The type of Perhaps it would be a good compromise to check whether the returned name is empty, and if it is use |
Yes, but it doesn't seem to have any advantage over the old approach since it is a shell command (you'd need to set |
The goal is to be able to pass custom arguments to the browser launch command (#2476) which isn't possible when using the webbrowser module. I can't see any difference in webbrowser.open and webbrowser.get so i am not sure why this fails. https://github.com/python/cpython/blob/dc0a87d9a0cf18fdfc51865a3c1bd2d5ebe9eae9/Lib/webbrowser.py#L605 .. opened in a new tab. Exactly. |
Ah yes, then using It's not directly about |
Use
state.proc_play
instead ofwebbrowser.open
to start the html5 player.This allows to stop the browser from withing blender (Stop button) and prevents opening multiple browser windows, like on krom.
Not sure why this wasn't the default behavior, but i can't see any drawbacks.