Skip to content

KRecentDocument: Improve compat with Gtk File Picker

Méven Car requested to merge (removed):bug-456046 into master

BUG: 456046

When a KDE program would write recent files initially it would output something like:

<?xml version="1.0" encoding="UTF-8"?>
<xbel version="1.0" xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks" xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info">  <bookmark href="file:///home/meven/Images/Screenshot_20220326_104027.png" added="2022-07-30T12:38:19.237607Z" modified="2022-07-30T12:38:19.960219Z" visited="2022-07-30T12:38:19.237609Z">
    <info>

Which is correct in XML, but GTK xml parser does not let it slides and expects a \n before the "bookmark" start element.

Previously there could be duplicate of entries as soon as the concerned bookmark was not the last one in the xbel file. The second commit fix that.

Edited by Méven Car

Merge request reports