Description: Respect $XDG_MENU_PREFIX when constructing the path to applications.menu
Origin: upstream, commit:a4db6799, commit:fe7211f2
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=683535
Bug-Debian: http://bugs.debian.org/676137
Bug-Ubuntu: https://launchpad.net/bugs/1069207
Forwarded: not-needed

--- alacarte-3.5.5.orig/Alacarte/MenuEditor.py
+++ alacarte-3.5.5/Alacarte/MenuEditor.py
@@ -23,7 +23,7 @@ from gi.repository import GMenu, GLib
 from Alacarte import util
 
 class MenuEditor(object):
-    def __init__(self, name='applications.menu'):
+    def __init__(self, name=os.environ.get('XDG_MENU_PREFIX', '') + 'applications.menu'):
         self.name = name
 
         self.tree = GMenu.Tree.new(name, GMenu.TreeFlags.SHOW_EMPTY|GMenu.TreeFlags.INCLUDE_EXCLUDED|GMenu.TreeFlags.INCLUDE_NODISPLAY|GMenu.TreeFlags.SHOW_ALL_SEPARATORS|GMenu.TreeFlags.SORT_DISPLAY_NAME)
