Skip to content

Remove disallowed services such as xdg-open when doing queryByMimetype

Akseli Lahtinen requested to merge work/akselmo/avoid-endless-loop-xdg-open into master

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.

BUG:494335


How to test:

  1. Create empty file
  2. Set that file to always open with xdg-open or kde-open
  3. Try opening the file with xdg-open or kde-open inside terminal
  4. Try opening the file from Dolphin by clicking on it
  5. It should always ask for the application to open with now
Edited by Akseli Lahtinen

Merge request reports

Loading