https://bugs.kde.org/show_bug.cgi?id=494335
Bug ID: 494335 Summary: Having xdg-open or kde-open as a preferred service causes infinite loop and CPU spike Classification: Frameworks and Libraries Product: frameworks-kservice Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kio-bugs-n...@kde.org Reporter: akse...@akselmo.dev CC: kdelibs-b...@kde.org Target Milestone: --- SUMMARY There are some applications that have buggy file-opening or handling, and they manage to set the mimetype to open with "xdg-open" or "kde-open." This causes the file to open inside a recursive loop, eating CPU and causing sad times. The application that was reported to me is called `p4v` and apparently that has a bug like this. I haven't been able to test it in the application itself since it is proprietary + costs big money. It is an application side bug, but we should still handle these situations gracefully to avoid users PC to be in weird place. STEPS TO REPRODUCE 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 OBSERVED RESULT CPU spiking to 100%, user has to run `killall kde-open` in terminal to get rid of it EXPECTED RESULT We would get the open-with dialog instead SOFTWARE/OS VERSIONS Operating System: Fedora Linux 40 KDE Plasma Version: 6.2.80 KDE Frameworks Version: 6.7.0 Qt Version: 6.7.2 Kernel Version: 6.10.12-200.fc40.x86_64 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 3600 6-Core Processor Memory: 15,5 GiB of RAM Graphics Processor: AMD Radeon RX 6600 -- You are receiving this mail because: You are watching all bug changes.