0

I've already seen this old question from 2011: How do I change the browser that gnome terminal opens links with?

and also How can I manually change the default web browser?

And I've already set my default browser to Chrome. To prove it, I run xdg-settings get default-web-browser and see the result google-chrome.desktop.

If I click URLs from emails or documents or even within the Terminal's output, they properly open in Chrome.

But running commands in terminal (such as to run a local webserver of a React app) continues to open my Brave browser, which I don't want.

How can I fix this?

Ryan
  • 401
  • You might edit your question to include the terminal command(s) that you are running. – Bovine Jan 10 '22 at 18:31
  • see the .env file in each react app file. It will have a BROWSER= tag or if not you can add it. – Rinzwind Jan 10 '22 at 18:59
  • Perhaps sudo update-alternatives --config x-www-browser will cope with this. – vanadium Jan 11 '22 at 07:12
  • @Rinzwind Thanks for the suggestion. Unfortunately it didn't help. – Ryan Jan 11 '22 at 14:47
  • @vanadium Thanks. That looked promising, especially since it showed "auto mode" as selected, which was /usr/bin/brave-browser-stable. I changed it to /usr/bin/google-chrome-stable but unfortunately it still opened Brave. – Ryan Jan 11 '22 at 14:48
  • Can you specify more precisely when it goes wrong? With which commands does it go wrong? – vanadium Jan 11 '22 at 14:50

0 Answers0