Bug 1644945 - [abrt] openbox: sort(): Menu.py:301:sort:AttributeError: 'DesktopEntry' object has no attribute 'OnlyShowIn'
Summary: [abrt] openbox: sort(): Menu.py:301:sort:AttributeError: 'DesktopEntry' objec...
Keywords:
Status: CLOSED DUPLICATE of bug 1624651
Alias: None
Product: Fedora
Classification: Fedora
Component: openbox
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:bdac79da3bd7b3b36a8830b7d6e...
: 1645211 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-01 02:30 UTC by Ian Laurie
Modified: 2018-11-01 16:53 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-01 16:53:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (912 bytes, text/plain)
2018-11-01 02:30 UTC, Ian Laurie
no flags Details
File: cgroup (349 bytes, text/plain)
2018-11-01 02:30 UTC, Ian Laurie
no flags Details
File: cpuinfo (970 bytes, text/plain)
2018-11-01 02:30 UTC, Ian Laurie
no flags Details
File: environ (1007 bytes, text/plain)
2018-11-01 02:30 UTC, Ian Laurie
no flags Details
File: mountinfo (3.23 KB, text/plain)
2018-11-01 02:30 UTC, Ian Laurie
no flags Details
File: namespaces (129 bytes, text/plain)
2018-11-01 02:30 UTC, Ian Laurie
no flags Details
File: open_fds (824 bytes, text/plain)
2018-11-01 02:30 UTC, Ian Laurie
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.