openurljob.cpp: Avoid opening files in endless loop if mimetype is set to open with xdg-open
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 show the "Open with dialog", so we handle the file like it has no set default application.
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