I am trying to run sudo and set the default browser. I want to set chromium as my default browser. I have tried
sudo update-alternatives --config x-www-browser
This shows chrome as my default browser. However when I run in sudo mode and try to use grunt , it keeps using firefox as the default browser. Without sudo it goes back to google chrome. What am I doing wrong?