I'm using discord. When I launch it, it gets stuck on a loading splash screen forever, until I kill a process about xdg-mime about discord and spotify , and a xdg-mime process  regularly eats a lot of CPU power, sends my load to 4, and starts my fans. As soon as I kill that process, I can hear the fans stop, the CPU usage drop, and load slowly fall back.
sh /usr/bin/xdg-mime query default x-scheme-handler/spotify
 apparently it's more than just one process, there's a couple others like the one above, and a few others that say
sh /usr/bin/xdg-mime query default x-scheme-handler/discord with a number at the end, different everytime.
does anyone know what xdg-mime is used for, if it's supposed to behave like that, and if there is something I should do ? from what I could gather discord uses xdg-mime to open links, which would make sense as that doesn't work anymore, I have to copy and paste urls to the browser. when I forget it creates a process that will stay forever that often says
xdg-open url where url is the link I clicked on, but the browser doesn't pick on it.