Several duplicate entries in places tab

Bug #1461708 reported by z
34
This bug affects 8 people
Affects Status Importance Assigned to Milestone
gwenview (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The Places tab in Gwenview is accreting duplicates of the default Home/Network/Root/Trash items. See https://www.kubuntuforums.net/showthread.php?68105&p=373643&viewfull=1#post373643 for an example. The number has been slowly growing. There are currently six of these. Interestingly, I can only find five such references when I search through config files, for example:

steve@x250:~$ grep '<title>Home' -iR .local/*
.local/share/kfileplaces/bookmarks.xml: <title>Home</title>
.local/share/kfileplaces/bookmarks.xml: <title>Home</title>
.local/share/kfileplaces/bookmarks.xml: <title>Home</title>
.local/share/kfileplaces/bookmarks.xml: <title>Home</title>
.local/share/user-places.xbel: <title>Home</title>

(.bak files deleted from output)

Before the recent fix for Dolphin's Places, there were fewer of these duplicate entries in Gwenview. Perhaps there's some relation? There is no duplication of entries in Dolphin, btw.

Operating system and application info below. I've enabled the Kubuntu backports PPA.

steve@x250:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.04
Release: 15.04
Codename: vivid

steve@x250:~$ uname -a
Linux x250 4.0.4-040004-generic #201505171336 SMP Sun May 17 17:37:22 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

steve@x250:~$ apt-cache policy gwenview
gwenview:
  Installed: 4:15.04.1-0ubuntu1~ubuntu15.04~ppa1
  Candidate: 4:15.04.1-0ubuntu1~ubuntu15.04~ppa1
  Version table:
 *** 4:15.04.1-0ubuntu1~ubuntu15.04~ppa1 0
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status
     4:14.12.3-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages

Tags: kubuntu
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gwenview (Ubuntu):
status: New → Confirmed
Revision history for this message
ben van 't ende (benvantende) wrote :

I intended to remove the bookmarks manually from ../.kde/share/apps/kfileplaces/bookmarks.xml, but I was afraid to ruin stuff. bookmarks.xml has grown to almost 200kB in my instance.

Revision history for this message
z (steveriley-deactivatedaccount-deactivatedaccount) wrote :

Possible fix...

Here ~/.local/share/user-places.xbel is correctly formatted. It contains one each of the standard items for:

* Places (Home, Network, Root, Trash)
* Recently Saved (Today, Yesterday, This Month, Last Month)
* Search For (Documents, Images, Audio Files, Videos)
* Devices (<my_hard_drive>)

Given the above, I moved all the files in ~/.local/share/kfileplaces/ to a temporary location and restarted KDE. Voila! Gwenview now has only one of each (just Places, not the others). Furthermore, Kickoff -> Computer also has only one of each (again, just Places).

I had previously also moved all the files in ~/.kde/share/apps/kfileplaces/.

So it looks like we no longer need any of those */kfileplaces/bookmarks.xml files and can do with the single user-places.xbel file.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.