FS#32313 - [alacarte] fails to run if XDG_MENU_PREFIX is not defined

Attached to Project: Arch Linux
Opened by Balló György (City-busz) - Wednesday, 31 October 2012, 06:07 GMT
Last edited by Ionut Biru (wonder) - Saturday, 03 November 2012, 13:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Ionut Biru (wonder)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
Alacarte fails to run if XDG_MENU_PREFIX environment variable is not defined. It seems that it is already fixed by upstream:
http://git.gnome.org/browse/alacarte/commit/?id=fe7211f2eb4c8bcf7cbddca75bf4e28ee7b98659

Please apply the patch.


Additional info:
* package version(s)
alacarte 3.6.1-1

* config and/or log files etc.
Traceback (most recent call last):
File "/usr/bin/alacarte", line 22, in <module>
from Alacarte.MainWindow import MainWindow
File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 31, in <module>
from Alacarte.MenuEditor import MenuEditor
File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 25, in <module>
class MenuEditor(object):
File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 26, in MenuEditor
def __init__(self, name=os.environ['XDG_MENU_PREFIX'] + 'applications.menu'):
File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
raise KeyError(key)
KeyError: 'XDG_MENU_PREFIX'


Steps to reproduce:
* Run alacarte.
This task depends upon

Closed by  Ionut Biru (wonder)
Saturday, 03 November 2012, 13:00 GMT
Reason for closing:  Fixed
Comment by Markus Braack (kinghol) - Wednesday, 31 October 2012, 20:08 GMT
yeah...same error here
Comment by Alexander F. Rødseth (xyproto) - Friday, 02 November 2012, 21:43 GMT
This package is currently an orphan. Assigning to the two last maintainers. Please move this package to [community] or unsupported if there is no interest for it. Thanks.
Comment by Balló György (City-busz) - Saturday, 03 November 2012, 12:43 GMT
I attached a diff file for changes needed to fix this bug. I added gnome-panel as a dependency to fix  FS#32386  also.

Loading...