I want my default application to open .html files to be Chrome but on Ubuntu 18.04 every time I open vscode it overrides my set default. Not sure how to enable this permanently, does anyone know how to stop this change?

1 Answer 1


Someone already opened an issue on github.


Not a permanent soluation, but delete/mv the xdg-open handler /usr/share/applications/code-url-handler.desktop and/or .local/share/applications/code-url-handler.desktop will fix current issue until next installation if they do not fix it.

  • 1
    I ended up deleting that file before realising there was an issue, couldn't find it earlier Oct 24, 2018 at 12:35
  • another way to fix this in your file explorer would be to find any .html file and do the following: right click > properties > open as > select your fav browser > set as default Mar 9, 2019 at 16:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.