Bug 390482

Summary: Snap detected as installed although it's not
Product: [Applications] Discover Reporter: Patrick Silva <bugseforuns>
Component: Snap BackendAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: andrew.crouthamel, marcus, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 5.12.3
Attachments: screenshot
screenshot

Description Patrick Silva 2018-02-14 21:32:45 UTC
Created attachment 110674 [details]
screenshot

"snap list" command shows the snap packages installed on my system.
"launch" and "remove" buttons are available despite snapweb is not installed here (screenshot) and the same is valid for all snap packages listed by Discover. I noticed this problem after uninstall a snap package (VLC player) using Discover.
Comment 1 Patrick Silva 2018-02-14 21:34:32 UTC
Created attachment 110676 [details]
screenshot
Comment 2 Patrick Silva 2018-02-18 13:04:41 UTC
*** Bug 390664 has been marked as a duplicate of this bug. ***
Comment 3 Patrick Silva 2018-02-18 13:15:38 UTC
*** Bug 390648 has been marked as a duplicate of this bug. ***
Comment 4 Aleix Pol 2018-02-20 17:13:54 UTC
Git commit 4593a765bf211fb7750038acfa20d94fa087be8c by Aleix Pol.
Committed on 20/02/2018 at 17:12.
Pushed by apol into branch 'Plasma/5.12'.

Simplify resource state tracking in snap

Only set the state when we know it for sure.
Set it for every package while at it.

M  +18   -10   libdiscover/backends/SnapBackend/SnapBackend.cpp
M  +1    -1    libdiscover/backends/SnapBackend/SnapBackend.h

https://commits.kde.org/discover/4593a765bf211fb7750038acfa20d94fa087be8c