Bug 489837 - [regression] "FlatpakApp is not installed but it still has data present" prompt no longer appears after Plasma 6.1
Summary: [regression] "FlatpakApp is not installed but it still has data present" prom...
Status: RESOLVED DUPLICATE of bug 489745
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (show other bugs)
Version: 6.1.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-06 16:33 UTC by Ali
Modified: 2024-07-23 12:52 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ali 2024-07-06 16:33:07 UTC
SUMMARY
Discover never shows the prompt to delete leftover flatpak data after uninstalling or opening a page of a formerly installed flatpak with leftover data (despite it having done so in 5.27 and possibly 6.0.x but I unfortunately have foggy memory in regards to this) 

STEPS TO REPRODUCE
1. Install and open flatpak app
2. Uninstall flatpak 
3. Wait for Discover to give the "FlatpakApp is not installed but it still has data present" prompt

OBSERVED RESULT

Discover doesn't show the leftover data deletion prompt, not allowing the user to remove leftover data via Discover

EXPECTED RESULT

Discover should show the prompt, and remove leftover flatpak data.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.6.37-1-lts (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Was reproducible on another device running Fedora KDE 40 with Plasma 6.1.1.2
Comment 1 Harald Sitter 2024-07-23 11:27:28 UTC
Seems to work fine on master (6.2). Indeed looking at the code I don't see how this could break exactly; it's literally just checking if ~/.var/$flatpakid exists.

Does this happen with all flatpaks or maybe just specific ones?
Comment 2 Ali 2024-07-23 12:32:17 UTC
(In reply to Harald Sitter from comment #1)
> Seems to work fine on master (6.2). Indeed looking at the code I don't see
> how this could break exactly; it's literally just checking if
> ~/.var/$flatpakid exists.
> 
> Does this happen with all flatpaks or maybe just specific ones?

I've gotten it working on a fresh image of Neon Testing (build date 2024-07-23), but it's still reproducible on neon stable (build date 2024-07-18, comes with 6.1.2, but prompt doesn't happen on 6.1.3 after updating regardless), fedora kde 40 (on 6.1.3), and endeavourOS/Arch Plasma (on 6.1.3)

This seems to be fixed in some nightly bugfix branch, not sure what fixes it tho :l maybe something like https://invent.kde.org/plasma/discover/-/merge_requests/875 ?
Comment 3 Harald Sitter 2024-07-23 12:52:44 UTC
Ah good catch. That is indeed the relevant fix.

*** This bug has been marked as a duplicate of bug 489745 ***