Commit a4db6799 authored by Dominique Leuenberger's avatar Dominique Leuenberger Committed by Matthias Clasen

Respect $XDG_MENU_PREFIX when constructing the path to applications.menu

Fixes bug 683535.
parent 2db5ad5c
......@@ -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['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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment