[Python-modules-team] Bug#654978: default for xdg.Menu.parse causes ParsingError: File not found
Ryan Kavanagh
rak at debian.org
Sat Jan 7 16:59:38 UTC 2012
Package: python-xdg
Version: 0.19-3
Severity: normal
Hi,
The default menu parsed by xdg.Menu.parse
(/etc/xdg/menus/applications.menu) is not provided by any Debian
package. Some applications, such as xmenud, rely on python-xdg's default
when trying to parse menus. I recommend changing the default menu parsed
to /etc/xdg/menus/debian-menu.menu (this would require adding menu-xdg
as a Depends), or to some other existing menu file.
Best wishes,
Ryan
Python 2.7.2+ (default, Dec 18 2011, 00:33:35)
[GCC 4.6.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xdg.Menu
>>> xdg.Menu.parse()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.7/xdg/Menu.py", line 506, in parse
raise ParsingError('File not found', "/etc/xdg/menus/%s" % candidate)
xdg.Exceptions.ParsingError: ParsingError in file '/etc/xdg/menus/applications.menu', File not found
>>> xdg.Menu.parse('/etc/xdg/menus/debian-menu.menu')
<xdg.Menu.Menu instance at 0xb6dd73cc>
>>>
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.1.0-1-686-pae (SMP w/4 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to es_ES.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-xdg depends on:
ii python 2.7.2-9
ii python-support 1.0.14
python-xdg recommends no packages.
python-xdg suggests no packages.
-- no debconf information
--
|_)|_/ Ryan Kavanagh | GnuPG key
| \| \ http://ryanak.ca/ | 4A11C97A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1876 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20120107/573b3d7a/attachment.pgp>
More information about the Python-modules-team
mailing list