Ubuntu – External links are opened as blank tabs in new browser window in firefox


I installed Ubuntu16.04, and set firefox as default browser, whenever I open links from external apps these are open as blank tabs in new browser window (no actual redirection to site, just a blank tab).

Best Answer

I've had the same problem for years and was finally able to solve it thanks to this strange new fashion of creating YouTube videos instead of writing a blog post (here is the original video).

Basically, you need to add a missing %u parameter in ~/.local/share/applications/firefox.desktop at the end of each Exec= line:

$ grep -B 2 ^Exec= ~/.local/share/applications/firefox.desktop
Exec=firefox %u
Name=Open a New Window
Exec=firefox -new-window %u
Name=Open a New Private Window
Exec=firefox -private-window %u