'DesktopEntry' object has no attribute 'OnlyShowIn'
This bug arrived with 0.26.
# /usr/libexec/openbox-xdg-menu /etc/xdg/openbox/terminals
Traceback (most recent call last):
File "/usr/libexec/openbox-xdg-menu", line 103, in <module>
menu = xdg.Menu.parse(menufile)
File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 1128, in parse
return XMLMenuBuilder(debug).parse(filename)
File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 644, in parse
menu.sort()
File "/usr/lib/python3.7/site-packages/xdg/Menu.py", line 301, in sort
if (entry.DesktopEntry.OnlyShowIn != [] and (
AttributeError: 'DesktopEntry' object has no attribute 'OnlyShowIn'
A patch is attached which resolves the issue in my testing.