So I found the fixing of my problem myself. There are these files in the ~/.local/share/applications/ directory called mimeapps.list and mimeinfo.cache.