jarun / ddgr

:duck: DuckDuckGo from the terminal
GNU General Public License v3.0
2.94k stars 139 forks source link

Opera browser not launching #69

Closed christophergeiger3 closed 6 years ago

christophergeiger3 commented 6 years ago

_Originally posted by @christophergeiger3 in https://github.com/jarun/ddgr/issue_comments#issuecomment-427622473_

Running O index throws a register() takes from 2 to 3 posistional arguments but 4 were given error. Runnning ddgr --url-handler=opera has the expected functionality though. My BROWSER var is set to /usr/bin/opera image

jarun commented 6 years ago

There are 2 problems:

  1. Python 3.7 issue is a duplicate of #63.

  2. Opera doesn't play well with webbrowser.open(). This is discussed here: https://stackoverflow.com/questions/51123537/webbrowser-open-breaks-the-link-python-3-7

--url-handler=opera uses the other method.

jarun commented 6 years ago

I'll test and document the opera issue.