Monday, December 10, 2018

xdg-open; vscode acts as default application for html

Opening html files stopped launching the browser, but launched the vscode application.

> xdg-mime query default text/html
code-url-handler.desktop

It turned out a new handler was configured

check your ~/.config/mimeapps.list file

The line

[Default Applications]
text/html=code-url-handler.desktop

sends the text/html files to a handler that launches vscode.

Just remove that line. And the xdg-open <>  will work again as expected

No comments:

xdg-open; vscode acts as default application for html

Opening html files stopped launching the browser, but launched the vscode application. > xdg-mime query default text/html code-url-h...