Bug 1644945

Summary: [abrt] openbox: sort(): Menu.py:301:sort:AttributeError: 'DesktopEntry' object has no attribute 'OnlyShowIn'
Product: [Fedora] Fedora Reporter: Ian Laurie <nixuser>
Component: openboxAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: boycottsystemd, christoph.wickert, mlichvar, nixuser, splinux25
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/cfe1ebc0596d40b30a3a898632d48dbdce1a9c2a
Whiteboard: abrt_hash:bdac79da3bd7b3b36a8830b7d6e8e9abae0a52a2;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-01 16:53:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Ian Laurie 2018-11-01 02:30:00 UTC
Description of problem:
1. Login to Openbox.
2. Attempt to show a menu

Version-Release number of selected component:
openbox-3.6.1-10.fc29

Additional info:
reporter:       libreport-2.9.6
cmdline:        /usr/bin/python3 /usr/libexec/openbox-xdg-menu applications
crash_function: sort
exception_type: AttributeError
executable:     /usr/libexec/openbox-xdg-menu
interpreter:    python3-3.7.1-1.fc29.x86_64
kernel:         4.18.16-300.fc29.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
Menu.py:301:sort:AttributeError: 'DesktopEntry' object has no attribute 'OnlyShowIn'

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 232, in sort
    submenu.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'

Local variables in innermost frame:
self: <xdg.Menu.Menu object at 0x7f812f2b9470>
_submenus: set()
_entries: set()
order: ['Merge', 'files']
menuentry: xfburn.desktop
entry: xfce4-about.desktop

Comment 1 Ian Laurie 2018-11-01 02:30:10 UTC
Created attachment 1499712 [details]
File: backtrace

Comment 2 Ian Laurie 2018-11-01 02:30:15 UTC
Created attachment 1499713 [details]
File: cgroup

Comment 3 Ian Laurie 2018-11-01 02:30:17 UTC
Created attachment 1499714 [details]
File: cpuinfo

Comment 4 Ian Laurie 2018-11-01 02:30:19 UTC
Created attachment 1499715 [details]
File: environ

Comment 5 Ian Laurie 2018-11-01 02:30:21 UTC
Created attachment 1499716 [details]
File: mountinfo

Comment 6 Ian Laurie 2018-11-01 02:30:23 UTC
Created attachment 1499717 [details]
File: namespaces

Comment 7 Ian Laurie 2018-11-01 02:30:25 UTC
Created attachment 1499718 [details]
File: open_fds

Comment 8 Ian Laurie 2018-11-01 05:04:10 UTC
Downloading 

    python3-pyxdg-0.25-16.fc29.noarch.rpm 

from 

    https://koji.fedoraproject.org/koji/buildinfo?buildID=1093056

and installing the rpm with the --force option fixes the problem.  Not sure if there are other negative implications or not, but it does gets openbox working.

Comment 9 boycottsystemd 2018-11-01 16:06:21 UTC
*** Bug 1645211 has been marked as a duplicate of this bug. ***

Comment 10 Miroslav Lichvar 2018-11-01 16:53:57 UTC

*** This bug has been marked as a duplicate of bug 1624651 ***