openbsd-ports/devel/py-xdg/patches/patch-xdg_Menu_py
2019-02-27 03:59:57 +00:00

15 lines
663 B
Plaintext

$OpenBSD: patch-xdg_Menu_py,v 1.8 2019/02/27 03:59:57 ajacoutot Exp $
Index: xdg/Menu.py
--- xdg/Menu.py.orig
+++ xdg/Menu.py
@@ -614,7 +614,7 @@ class XMLMenuBuilder(object):
candidate = os.environ.get('XDG_MENU_PREFIX', '') + "applications.menu"
filename = _get_menu_file_path(candidate)
if not filename:
- raise ParsingError('File not found', "/etc/xdg/menus/%s" % candidate)
+ raise ParsingError('File not found', "${SYSCONFDIR}/xdg/menus/%s" % candidate)
# check if it is a .menu file
if not filename.endswith(".menu"):
raise ParsingError('Not a .menu file', filename)