Windows mingw builds (since meld 3.20) "recently used" menu list is always empty
Steps to reproduce:
- Delete
%LOCALAPPDATA%\recently-used.xbel
and%LOCALAPPDATA%\meld\
to simulate a first run by a new user (bug reproduces without deletion too, but with the deletion it is simpler to analyze) - Run meld 3.20.0 without arguments from cmd.exe as
"c:\Program Files (x86)\meld\Meld.exe" 2>&1 | findstr .
(to see stderr) - Select version control view for some folder via UI
- Press "Compare"
- Comparison opens fine but 4 similar error messages appears in console
2019-01-06 15:05:22,807 CRITICAL Gtk:(org.gnome.meld:360): GLib-GIO-CRITICAL: 15:05:22.807: g_content_type_is_a: assertion 'type != NULL' failed
- Comparison opens fine but 4 similar error messages appears in console
- Exit meld
Intermediate result:
- the
%LOCALAPPDATA%\recently-used.xbel
contains
<?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:///C:/Users/user/AppData/Local/meld/recent-bhop3yvu.meldcmp" added="2019-01-06T12:15:00Z" modified="2019-01-06T12:15:00Z" visited="2019-01-06T12:15:00Z">
<title>Version control: F:\msys64-renamed\home\user\meld</title>
<desc>Version control comparison
file:///F:/msys64-renamed/home/user/meld</desc>
<info>
<metadata owner="http://freedesktop.org">
<mime:mime-type type="application/x-meld-comparison"/>
<bookmark:applications>
<bookmark:application name="Meld" exec="'C:\Program Files (x86)\meld\Meld.exe --comparison-file %u'" modified="2019-01-06T12:15:00Z" count="1"/>
</bookmark:applications>
<bookmark:private/>
</metadata>
</info>
</bookmark>
</xbel>
- and
%LOCALAPPDATA%\meld\recent-bhop3yvu.meldcmp
contains
[Comparison]
type = Version control
uris = file:///F:/msys64-renamed/home/user/meld
Now run meld without arguments again
Result:
- Expected: "File->Open Recent" contains item corresponding for previous comparison
- Actual: "File->Open Recent" menu show "No items found"
- Unlike first execution, when no recently-used files were present - meld prints same error message
g_content_type_is_a: assertion 'type != NULL' failed
during start (I think during loading of recently-used list) - file
%LOCALAPPDATA%\meld\recent-bhop3yvu.meldcmp
is deleted during meld start
- Unlike first execution, when no recently-used files were present - meld prints same error message
Also it looks that the count of errors printed during meld starting is near 3*count of recent entries in %LOCALAPPDATA%\recently-used.xbel
counting not only meld history, but other lines too (for example gedit).
The problem present both in MSI-installed meld and meld runed from checkout in msys2-mingw64 environment. gedit from same environment handles its recent documents list fine (history non-empty, no critical messages).
So it looks that this bug is the user visible-behavior of those error messages I mentioned in !25 (comment 345965)