Duplicate entries in Default applications

I removed thunderbird and firefoxs default dnf based installs and replaced with tarball installs e.g.
https://support.mozilla.org/en-US/kb/installing-thunderbird-linux#w_installing-thunderbird-manually-for-advanced-users

However I have duplicate entries for both under settings, default applications even though the original versions have been removed.

How do I clean this up.

Might actually be unrelated to the above as reinstalling via dnf still leaves two non functional entries.

I also tried deleting the symlinks incase the binaries where being detected twice, but that is probably wrong, I assume it is reading .desktop files.

That was easy.

Didn’t realize desktop files can also be in
~/.local/share/applications

Deleted them and we are golden

NOT just
/usr/share/applications
/usr/local/share/applications

Found the rogue files

2 Likes