Bug 467350 - Discover can hang with no visual progress indicator while deleting settings and user data for Flatpak apps
Summary: Discover can hang with no visual progress indicator while deleting settings a...
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.27.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2023-03-14 17:34 UTC by David
Modified: 2023-03-31 15:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2023-03-14 17:34:50 UTC
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
Comment 1 Nate Graham 2023-03-15 17:08:24 UTC
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.
Comment 2 Bug Janitor Service 2023-03-31 00:29:47 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/520
Comment 3 Aleix Pol 2023-03-31 14:46:56 UTC
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