Introspection KeyFile.load_from_data possibly bugged
The following sample code fails:
#!/bin/env python3
from gi.repository import GLib
kfdata='[Desktop Entry]\nVersion=1.0\nExec=xfce4-appfinder\nIcon=edit-find\nStartupNotify=true\nTerminal=false\nType=Application\nCategories=Utility;X-XFCE;\nName=Application Finder\nName[ru]=Поиск приложений\nComment=Find and launch applications installed on your system\nComment[ru]=Поиск и запуск установленных в вашей системе приложений\nX-XFCE-Source=file:///usr/share/applications/xfce4-appfinder.desktop\n'
kf=GLib.KeyFile.new()
kf.load_from_data(kfdata,len(kfdata),0)
There exact error depends on the last line length, so there must be a parsing error somewhere in the process.