无法使 xdg-mime 查询返回所选浏览器

无法使 xdg-mime 查询返回所选浏览器

使用 Chromium 作为默认浏览器大约一年后,我的 Linux 自发地切换为使用 Firefox(可能是因为一些更新)。我想切换回来。基于这个答案,我执行了

xdg-mime default google-chrome.desktop text/html

并使用验证结果

xdg-mime query default text/html

但它不断返回firefox.desktop

我尝试了几次,没有出现任何错误,~/.config/mimeapps.list当我执行上面的第一个命令时,我的心被触动了。但是,响应仍然存在firefox.desktop,并且当单击命令行上的链接时,Firefox 将打开。请注意,firefox.desktop我的mimeapps.list.

显然有什么东西覆盖了我的设置...知道什么吗?


Linux jmpx19 4.15.0-88-generic #88-Ubuntu SMP Tue Feb 11 20:11:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Distributor ID: LinuxMint
Description:    Linux Mint 19 Tara
Release:    19
Codename:   tara

更新

正如评论中所建议的,我尝试过

XDG_UTILS_DEBUG_LEVEL=4 xdg-mime query default text/html

并得到了

Checking /home/maaartinus/.config/mimeapps.list
Checking /home/maaartinus/.local/share/applications/xfce-defaults.list and /home/maaartinus/.local/share/applications/xfce-mimeinfo.cache
Checking /home/maaartinus/.local/share/applications/defaults.list and /home/maaartinus/.local/share/applications/mimeinfo.cache
Checking /usr/share/xfce4/applications/xfce-defaults.list and /usr/share/xfce4/applications/xfce-mimeinfo.cache
Checking /usr/share/xfce4/applications/defaults.list and /usr/share/xfce4/applications/mimeinfo.cache
Checking /home/maaartinus/.local/share/flatpak/exports/share/applications/xfce-defaults.list and /home/maaartinus/.local/share/flatpak/exports/share/applications/xfce-mimeinfo.cache
Checking /home/maaartinus/.local/share/flatpak/exports/share/applications/defaults.list and /home/maaartinus/.local/share/flatpak/exports/share/applications/mimeinfo.cache
Checking /var/lib/flatpak/exports/share/applications/xfce-defaults.list and /var/lib/flatpak/exports/share/applications/xfce-mimeinfo.cache
Checking /var/lib/flatpak/exports/share/applications/defaults.list and /var/lib/flatpak/exports/share/applications/mimeinfo.cache
Checking /usr/local/share/applications/xfce-defaults.list and /usr/local/share/applications/xfce-mimeinfo.cache
Checking /usr/local/share/applications/defaults.list and /usr/local/share/applications/mimeinfo.cache
Checking /usr/share/applications/xfce-defaults.list and /usr/share/applications/xfce-mimeinfo.cache
Checking /usr/share/applications/defaults.list and /usr/share/applications/mimeinfo.cache
firefox.desktop

我的/home/maaartinus/.config/mimeapps.list样子

[Added Associations]
text/csv=libreoffice-calc.desktop;
...
text/x-csrc=xed.desktop;

[Default Applications]
text/html=google-chrome.desktop
...

相关内容