Bug 390221 - Discover item in the Favorite area appears duplicately
Summary: Discover item in the Favorite area appears duplicately
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Menu (Kicker) (show other bugs)
Version: 5.15.2
Platform: unspecified Linux
: NOR normal
Target Milestone: 1.0
Assignee: Ivan Čukić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-10 15:22 UTC by trmdi
Modified: 2020-06-12 15:10 UTC (History)
6 users (show)

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


Attachments
Picture (67.44 KB, image/png)
2018-02-10 15:22 UTC, trmdi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description trmdi 2018-02-10 15:22:17 UTC
Created attachment 110509 [details]
Picture

Step to reproduce:
 - Add the Application Dashboard/Menu/Launcher widget to the panel, the Discover item in the Favorite area appears duplicately.
Comment 1 David Edmundson 2018-02-10 22:52:29 UTC
Can you right click on both and select "edit application" 

I want to see the name (probably org.kde.discover) in the editable box in the top
and the location.

Then reset this bug status back to unconfirmed.
Comment 2 trmdi 2018-02-11 03:07:22 UTC
Ok, they are the same thing: https://i.imgur.com/ffs9wcJ.png

More detailed description:
- If you remove one, you can not right click on the other.
- If you restart the computer, it appears duplicately again.
Comment 3 Ivan Čukić 2018-02-11 10:30:17 UTC
What is the output of the following command?

echo 'select * from ResourceLink where targettedResource like "%cover%"' | sqlite3 ~/.local/share/kactivitymanagerd/resources/database
Comment 4 Ivan Čukić 2018-02-11 10:35:27 UTC
(before and after trying to remove the favourite)
Comment 5 trmdi 2018-02-11 12:17:06 UTC
Before:
========
:global|org.kde.plasma.favorites.applications|org.kde.discover.desktop
:global|org.kde.plasma.favorites.applications|org.kde.discover
:global|org.kde.plasma.favorites.applications|applications:org.kde.discover.desktop


After:
========
:global|org.kde.plasma.favorites.applications|org.kde.discover.desktop
:global|org.kde.plasma.favorites.applications|org.kde.discover
Comment 6 Ivan Čukić 2018-02-11 16:50:28 UTC
Great, thanks.

Which edition of openSUSE is it - so that I can download and test in a VM?
Comment 7 trmdi 2018-02-11 17:00:44 UTC
openSUSE Tumbleweed snapshot 20180209.
You can download the file: openSUSE-Tumbleweed-KDE-Live-x86_64-Current.iso
from: https://download.opensuse.org/tumbleweed/iso/
Comment 8 pranavtaysheti 2018-02-18 11:17:51 UTC
I can confirm the same issue on antergos (Arch Linux) default KDE setup. So this problem is not distribution specific.
Comment 9 pranavtaysheti 2018-02-18 11:23:30 UTC
Just Updated my system to plasma 5.12.1, it seems to fix this issue. I can say for antergos (arch).
Comment 10 pranavtaysheti 2018-02-18 17:03:19 UTC
(In reply to Pranav Taysheti from comment #9)
> Just Updated my system to plasma 5.12.1, it seems to fix this issue. I can
> say for antergos (arch).

OOPS! i am very sorry to make such mistakes here. But NO plasma 5.12.1 hasn't fixed it.
Comment 11 Alexander Mentyu 2018-03-09 16:19:18 UTC
Can't reproduce in:

openSUSE-Tumbleweed-KDE-Live-x86_64-Current.iso	08-Mar-2018 01:49

and in:

Plasma: 5.12.2
Apps: 17.12.2
Frameworks: 5.43.0
Qt: 5.10.1
Kernel: 4.14.22-1-MANJARO
OS: Netrunner Rolling

with adding Discover into Favorites through right clicking

Possibly related https://bugs.kde.org/show_bug.cgi?id=389515
Comment 12 pranavtaysheti 2018-04-06 13:53:55 UTC
Seems like the issue is with Plasma panel, the issue doesnt appear when panel is replaced with latte dock.
Comment 13 trmdi 2018-10-06 13:52:33 UTC
Possibly related to the bug https://bugs.kde.org/show_bug.cgi?id=385814
Comment 14 trmdi 2019-03-29 03:20:06 UTC
I can no longer reproduce this on: Plasma 5.15.3 - KF 5.56.0 - Qt 5.12.2 - openSUSE Tumbleweed 20190325.

If someone still has this, try:
> $ sqlite3 ~/.local/share/kactivitymanagerd/resources/database "DELETE FROM 'ResourceLink';"
(I don't know if it fixes anything though)
Comment 15 trmdi 2019-03-29 03:30:26 UTC
(In reply to Ivan Čukić from comment #3)
> What is the output of the following command?
> 
> echo 'select * from ResourceLink where targettedResource like "%cover%"' |
> sqlite3 ~/.local/share/kactivitymanagerd/resources/database

Now the output is:

:global|org.kde.plasma.favorites.applications|applications:org.kde.discover.desktop
Comment 16 Alexander Lohnau 2020-06-12 15:10:16 UTC
This is fixed now, it is checked if the entry already exists.

I reproduced the scenario for an application and got the following debug output:
>org.kde.plasma.kicker: Adding result "applications:jetbrains-clion.desktop" already present? false
>org.kde.plasma.kicker: Original id is:  "applications:jetbrains-clion.desktop" , and the url is QUrl("file:///home/user/.local/share/applications/jetbrains-clion.desktop")
> ...
>org.kde.plasma.kicker: Got  "jetbrains-clion.desktop"  -->
>org.kde.plasma.kicker: Adding result "jetbrains-clion.desktop" already present? true

And yes this is related to BUG 385814.