On both an existing regularly updated install (over 6 months old) and on a fresh install (literally yesterday), I was noticing that using the Super + F shortcut in cosmic-session was resulting in code-editors installed as flatpaks to open, instead of the current system default of org.gnome.Nautilus.desktop
This does not appear to be a unique problem for either Pop or Cosmic, as I found a couple of issues over the last three years reporting similar behaviour, as well as at least one issue where a standard package install of a code editor was being preferenced by flatpaks and snaps over a file manager.
On my system, running XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default inode/directory resulted in
Checking /home/daniel/.config/mimeapps.list
Checking /home/daniel/.local/share/applications/defaults.list and /home/daniel/.local/share/applications/mimeinfo.cache
Checking /home/daniel/.local/share/applications/defaults.list and /home/daniel/.local/share/applications/mimeinfo.cache
Checking /usr/share/cosmic/applications/defaults.list and /usr/share/cosmic/applications/mimeinfo.cache
Checking /usr/share/cosmic/applications/defaults.list and /usr/share/cosmic/applications/mimeinfo.cache
Checking /home/daniel/.local/share/flatpak/exports/share/applications/defaults.list and /home/daniel/.local/share/flatpak/exports/share/applications/mimeinfo.cache
com.vscodium.codium.desktop
Searching those files for inode/directory pointed to ~/.local/share/flatpak/exports/share/applications/mimeinfo.cache being the culprit:
I'm not sure why the flatpak's mimeinfo.cache is being preferenced over any other value. I saw this with VSCodium, VSCode, and Lapce, all installed as flatpaks. I have yet to test whether this is true of standard package installs (i.e. installing the .deb for VSCode). Testing that will be my next-step.
On both an existing regularly updated install (over 6 months old) and on a fresh install (literally yesterday), I was noticing that using the
Super + F
shortcut in cosmic-session was resulting in code-editors installed as flatpaks to open, instead of the current system default oforg.gnome.Nautilus.desktop
This does not appear to be a unique problem for either Pop or Cosmic, as I found a couple of issues over the last three years reporting similar behaviour, as well as at least one issue where a standard package install of a code editor was being preferenced by flatpaks and snaps over a file manager.
On my system, running
XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default inode/directory
resulted inSearching those files for
inode/directory
pointed to~/.local/share/flatpak/exports/share/applications/mimeinfo.cache
being the culprit:The two other locations which list explicit values for the
inode/directory
mimetype were/usr/share/applications/mimeinfo.cache
and
/usr/share/applications/defaults.list
I'm not sure why the flatpak's mimeinfo.cache is being preferenced over any other value. I saw this with VSCodium, VSCode, and Lapce, all installed as flatpaks. I have yet to test whether this is true of standard package installs (i.e. installing the .deb for VSCode). Testing that will be my next-step.