Created attachment 151692 [details]
I have downloaded a .flatpak file (not .flatpakref file) and opened with Discover, then it prompted message "xx.xx.xx(flatpak app dns name) is not installed but it still has data present" with a button "Delete settings and user data" , if click that button then Discover will delete the ~/.var folder. I was lucky that I had regular backups of my data so I didn't suffer a huge loss.
I think the message is told me that there is already a data directory in my ~/.var/app for the opened .flatpak app, but in fact my ~/.var/app didn't have.The whole prompt and button misled me into thinking it was just deleting the data for a specific flatpak app under ~/.var/app, but then I pressed the button and realized it was deleting the entire ~/.var folder.
Fedora36 , Plasma5.25.4 , KDE framework 5.97.0 , QT 5.15.5 , Kernel 5.19.4-200.fc36.x86_64
Yikes. Can you point me to where I can find a .flatpak file to test this with?
In other news, your buttons look messed up because you have qt5ct installed (delete it) or you don't have the qqc2-desktop-style frameworks installed (install it).
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/364
Sent a MR to make sure this never happens, granted it should never happen that we remove information we are not meant to.
Please still send us the information Nate requested above.
(In reply to Nate Graham from comment #1)
> Yikes. Can you point me to where I can find a .flatpak file to test this
> In other news, your buttons look messed up because you have qt5ct installed
> (delete it) or you don't have the qqc2-desktop-style frameworks installed
> (install it).
(In reply to Aleix Pol from comment #4)
> Sent a MR to make sure this never happens, granted it should never happen
> that we remove information we are not meant to.
> Please still send us the information Nate requested above.
https://github.com/upscayl/upscayl/releases/tag/v1.2.0 (Upscayl-1.2.0-x86_64.flatpak 133MB )
That screenshot was took I opened Discover on gnome, on Plasma the behavior of bug still happen (In reply to Aleix Pol from comment #4)
Git commit 14cc791d32c4fba6eeaaaf7c4b9d2bd4fc84ae27 by Aleix Pol Gonzalez, on behalf of Aleix Pol.
Committed on 31/08/2022 at 10:53.
Pushed by apol into branch 'master'.
flatpak: Make sure we don't uninstall what we shouldn't
M +15 -4 libdiscover/backends/FlatpakBackend/FlatpakResource.cpp