[dolphin] [Bug 466420] Add ability to delete devices from Dolphin faster

Andrei Rybak bugzilla_noreply at kde.org
Sat Feb 25 22:10:43 GMT 2023


https://bugs.kde.org/show_bug.cgi?id=466420

--- Comment #3 from Andrei Rybak <rybak.a.v at gmail.com> ---
For those who don't mind editing Dolphin's data manually, zacharytalis proposed
a hacky solution over at https://bugs.kde.org/show_bug.cgi?id=466416#c4:

> For the time being, you can prune these spam entries by editing
> "~/.local/share/user-places.xbel" directly. (make sure to be careful and
> take a backup, yada yada)

I looked at the structure of this XML file, which consisted mostly of
<bookmark> tags. Each bookmark has a <title> tag, which has the strings which I
was interested in -- the names of the phones. I grepped the file for all
<title> tags. I noticed that all the erroneous entries are clumped together:

> $ cd ~/.local/share
> $ grep '<title>' user-places.xbel | uniq
> [...]
> <title>Xiaomi</title>
> <title>Pixel 6A</title>
> <title>Xiaomi</title>
> <title>Pixel 6A</title>
> <title>Xiaomi</title>
> <title>Pixel 6A</title>
> <title>Xiaomi</title>
> <title>Pixel 6A</title>
> <title>Xiaomi</title>
> <title>Pixel 6A</title>
> <title>Xiaomi</title>
> <title>Pixel 6A</title>
> <title>Xiaomi</title>
> <title>Pixel 6A</title>

So I did the following:

1. Found the first bookmark with the <title> of an erroneous entry
2. Started selection
3. Found the last erroneous bookmark
4. Made sure the selection starts at an opening tag <bookmark> and ends at a
closing tag </bookmark>
5. Deleted the whole selection

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list