I'm grateful for this article, and hope I will one day figure out how to change my URL opener for xdg-open :)
~/.local/share/applications/mimeapps.list
~/.config/mimeapps.list
In here you find the MIME type pointing at a .desktop file (app launcher), it's a matter of changing that. Mine for example related to using Firefox: [Default Applications]
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
Find the .desktop file you want to launch and just update that bad boy. Most DEs have a GUI tool to manage this for you without having to resort to manual editing...[0] https://www.freedesktop.org/wiki/Specifications/desktop-entr...
On my (Debian) system, firefox and chromium ship their .desktop files.
I use BROWSER environment variable for that.
It seems to even override XDG settings.
% xdg-settings set default-web-browser firefox.sh.desktop
xdg-settings: $BROWSER is set and can't be changed with xdg-settings
% echo ${BROWSER}
firefox
Hope that helps.EDIT: You also got me nice idea - to add http(s):// and ftp:// support for mine see.sh opener :)