I’ve noticed that Discord for Linux takes a very, very long time to start up – sometimes in the order of hours. During this time, my laptop gets very hot. I eventually decided to look into this and found that several instances of
xdg-mime were taking up 100% CPU. Killing them caused Discord to open instantly.
Apparently this issue is present with Spotify too. This fix will work for both of them.