Remove disallowed services such as xdg-open when doing queryByMimetype
Alternative to: kio!1732 (merged)
Some applications set their file mimetypes to open with "xdg-open" which then causes it open in "kde-open", which then ends up calling itself constantly and endlessly, spiking CPU.
Instead, catch that early on and remove them from services list.
How to test:
- Create empty file
- Set that file to always open with
xdg-open
orkde-open
- Try opening the file with
xdg-open
orkde-open
inside terminal - Try opening the file from Dolphin by clicking on it
- It should always ask for the application to open with now
Edited by Akseli Lahtinen