Summary: | Having xdg-open or kde-open as a preferred service causes infinite loop and CPU spike | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kservice | Reporter: | Akseli Lahtinen <akselmo> |
Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kdelibs-bugs, nate |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kio/-/commit/4fbda144ab4b77a2d99eb0dca1ff3cf75957cf55 | Version Fixed In: | 6.8 |
Sentry Crash Report: |
Description
Akseli Lahtinen
2024-10-09 08:43:31 UTC
I've also made a relevant merge request: https://invent.kde.org/frameworks/kservice/-/merge_requests/186 Git commit 4fbda144ab4b77a2d99eb0dca1ff3cf75957cf55 by Akseli Lahtinen. Committed on 14/10/2024 at 08:37. Pushed by akselmo into branch 'master'. 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. M +7 -0 src/gui/openurljob.cpp https://invent.kde.org/frameworks/kio/-/commit/4fbda144ab4b77a2d99eb0dca1ff3cf75957cf55 |