-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
webbrowser: wrong arguments for Opera browser. #78200
Comments
webbrowser module currently opens Opera Browser using the following command: opera -remote "openURL(https://google.com,new-window)" While this follows Opera's documentation (https://www.opera.com/docs/switches/#remote), this is broken since Opera switched from its own engine to Chromium. The working command is exactly the same as Chrome: opera --new-window https://google.com |
I can use opera -remote "openURL(https://google.com,new-window)" without problems as per the opera documentation with the latest version: $opera --version |
What error do you get and what opera version are you using? |
$opera --version $opera -remote "openURL(https://google.com,new-window)" would open a broken link: http://openurl%28https//google.com,new-window) I found that problem while answering a StackOverflow question: https://stackoverflow.com/questions/51123537/webbrowser-open-breaks-the-link-python-3-7 |
Sorry, you are right! It seems that my Opera opened another tab with Google by default and I was confused by that. Thanks for the context. |
No problem :) To add more, the Opera's documentation (https://www.opera.com/docs/switches) says: "This document was last updated for Opera 11.61" This is the reason I guessed Opera changed its CLI format to Chrome's and forget to document it.... |
Shouldn't this be backported to 2.7 as well? |
I also believe this can be backported to 2.7 as well. |
Thanks for reporting the issue and the PR, Bumsik Kim! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: