Zend certified PHP/Magento developer

How to set default variable for a single command with env variables?

I need to override default browser for single process. This process starts manually from npm scripts. To achieve this programmatically, I decided to override BROWSER environment variable right before the script. But it does not work. It steal opens system wide default browser. I tried with xdg-open, but it is not working too.

To be short, I want the following command open given URL in provided browser, not in default one.

BROWSER='path to desired browser' xdg-open 'any url'

P.S.: Just to tell a little bit more about my problem. I am using Firefox as the default browser an all my machines, and got quite used to it. But recently, debugging one web application, I realized that some break ponts were not used by Firefox dev tools. I installed Chromium, and its debugger worked as expected. I use storybook for development, and would like to open it in Chromium, while using Firefox as default variable for the regular everyday use.