SUMMARY Discover hangs without telling me that it's doing something when I uninstall a flatpak app and let it delete the user data that came with it. STEPS TO REPRODUCE 1. Launch discover. 2. Search for "inkscape". 3. Click the result for "inkscape". 4. Click Sources -> Flathub. 5. Click Install. 6. Launch Inkscape, do something with it, then exit. 7. Go back to discover, uninstall inkscape in the same window from where it was installed, and after that, click the button to delete settings and user data. OBSERVED RESULT Hangs for a while, then finishes and becomes responsive again. EXPECTED RESULT Should not hang. If it's doing something, should tell what exactly it is and show me a progress bar SOFTWARE/OS VERSIONS Operating System: Debian GNU/Linux 12 KDE Plasma Version: 5.27.2 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 Kernel Version: 6.1.0-6-amd64 (64-bit) Graphics Platform: X11 Processors: 20 × 12th Gen Intel® Core™ i7-12700H Memory: 62.5 GiB of RAM Graphics Processor: Mesa Intel® Graphics Manufacturer: SLIMBOOK Product Name: Executive ADDITIONAL INFORMATION
Interesting. It's always been instant for me. I guess with a lot of data or a slower disk, it might not be. We should indeed make the I/O asynchronous and display a progress bar if it takes more than a fraction of a second.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/520
Git commit 70e5b61ffd444674c3f024c1dd4f6d79139ec2f5 by Aleix Pol Gonzalez. Committed on 31/03/2023 at 14:46. Pushed by apol into branch 'master'. flatpak: Improve feedback while removing user data It seems it's really slow on some occasions. M +3 -0 libdiscover/backends/FlatpakBackend/qml/FlatpakRemoveData.qml https://invent.kde.org/plasma/discover/commit/70e5b61ffd444674c3f024c1dd4f6d79139ec2f5