Bug 387888

Summary: Duplicate items in Dolphin places view
Product: [Frameworks and Libraries] frameworks-kio Reporter: Antonio Rojas <arojas>
Component: generalAssignee: Renato Araujo Oliveira Filho <renatox>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs, nate, renatox
Priority: NOR    
Version: 5.41.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: user-places.xbel

Description Antonio Rojas 2017-12-14 07:37:50 UTC
After updating to KIO 5.41, all items under "Recently saved" and "Search" on the Dolphin places sidebar are duplicated. It only happens in Dolphin itself, not in the file chooser.
Comment 1 Renato Araujo Oliveira Filho 2017-12-14 11:50:35 UTC
could you attach your ""~/.local/share/user-places.xbel"  file?
Comment 2 Antonio Rojas 2017-12-14 11:54:55 UTC
Created attachment 109370 [details]
user-places.xbel
Comment 3 Renato Araujo Oliveira Filho 2017-12-14 12:51:05 UTC
Thanks for the report. I can confirm that, and what is causing that is:

The KIO model now supports balloon urls and it create new ones if there is no entries while starting it. 

Since the balloon entries from dolphin is marked as  "<OnlyInApp>dolphin-places-panel</OnlyInApp>" it will be invisible for KIO model and it will create a new one. Then when running dolphin it will show the duplicated entry. 

I am thinking how to solve that in acceptable way.
Comment 4 Renato Araujo Oliveira Filho 2017-12-14 15:46:28 UTC
https://phabricator.kde.org/D9333
Comment 5 Renato Araujo Oliveira Filho 2017-12-14 15:46:36 UTC
https://phabricator.kde.org/D9333