firecat53 / urlscan

Mutt and terminal url selector (similar to urlview)
GNU General Public License v2.0
211 stars 36 forks source link

Links are opened in qutebrowser AND Firefox #123

Closed chmanie closed 2 years ago

chmanie commented 2 years ago

Somehow links from urlscan are always opened in qutebrowser AND Firefox (I also have Chromium installed, which does not open).

Here's what I could find:

In both cases (Firefox and qutebrowser) the url is opened using the Web Browser method.

xdg-open "URL" opens the URL in qutebrowser python -m webbrowser "URL" opens the URL in qutebrowser urlscan -r "xdg-open {}" opens the URL in qutebrowser AND Firefox

Setting the BROWSER environment variable doesn't seem to have any effect (still opened in both browsers), that's why this workaround also doesn't work: https://github.com/firecat53/urlscan/issues/113

Am I doing something wrong here?

chmanie commented 2 years ago

Huh. Setting $BROWSER to qutebrowser eventually did end up doing the trick here.

firecat53 commented 2 years ago

Glad you got it sorted! Sometimes people have their xdg settings messed up or use a long forgotten script to open their browser, both of which cause issues from time to time :)