I recently installed another browser and set it as default, since then tmux-url-select opens each url in both browsers. Opening an URL from somewhere else or directly using xdg-open does not show that behaviour, it only opens in the one I set as default.
I found a workaround, I changed COMMAND from xdg-open to a script with the following content:
#!/bin/bash
{
xdg-open "$@"
} &>/dev/null
Notably, redirecting the output is required. If I don't, tmux-url-select will again open the link in both browsers. I redirected to files to check, if there are any errors in the output, but stdout was empty and stderr contained "09:56:49 INFO: Opening in existing instance". So a nonempty stderr seems to cause the problem.
I recently installed another browser and set it as default, since then tmux-url-select opens each url in both browsers. Opening an URL from somewhere else or directly using xdg-open does not show that behaviour, it only opens in the one I set as default.
I found a workaround, I changed
COMMANDfrom xdg-open to a script with the following content:Notably, redirecting the output is required. If I don't, tmux-url-select will again open the link in both browsers. I redirected to files to check, if there are any errors in the output, but stdout was empty and stderr contained "09:56:49 INFO: Opening in existing instance". So a nonempty stderr seems to cause the problem.