On Mon, Feb 10, 2025 at 12:45:06 +0000, Chris Green wrote: > I had x-www-browser set to vivaldi but web links still got opened in > epiphany, I tried changing just about every setting I could find for a > browser to vivaldi but I still got epiphany.
There isn't a single interface for defining what you mean by a "default web browser". Each application does this however its authors saw fit to implement. Invoking /usr/bin/x-www-browser is one way, and setting that link will work for the apps that implement this choice. Some apps use XDG's way, which is described at <https://stackoverflow.com/questions/41172692/xdg-open-does-not-open-the-default-browser#comments-link-41172692>. Others may use MIME, in which case you would configure some file or other. It used to be ~/.mailcap but apparently XDG is trying to move this to ~/.config/mimeapps.list (according to <https://stackoverflow.com/questions/57667116/how-do-i-set-the-default-browser-for-xdg-open-on-centos-7-if-xdg-settings-has-no#comments-link-57667116>). Still other applications may respect an environment variable, such as $BROWSER, or they may only have their own unique configuration for it. Welcome to Unix/Linux.