VSCode 覆盖默认的 HTML 查看器

Pad*_*ddy 7 html default-programs ubuntu-gnome visual-studio-code

我希望我的默认应用程序将.html文件打开为 Chrome,但在 Ubuntu 18.04 上每次打开 vscode 时它都会覆盖我设置的默认值。不确定如何永久启用此功能,有人知道如何停止此更改吗?

Alv*_*ang 7

有人已经在github上打开了一个问题。

https://github.com/Microsoft/vscode/issues/60664

不是永久解决方案,但删除/mv xdg-open 处理程序/usr/share/applications/code-url-handler.desktop和/或.local/share/applications/code-url-handler.desktop将修复当前问题,直到下一次安装,如果他们不修复它。