[alacarte] Respect $XDG_MENU_PREFIX when constructing the path to applications.menu



commit a4db6799f41947b5cd08231e77d41c561d94170a
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Thu Sep 6 23:01:11 2012 +0200

    Respect $XDG_MENU_PREFIX when constructing the path to applications.menu
    
    Fixes bug 683535.

 Alacarte/MenuEditor.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Alacarte/MenuEditor.py b/Alacarte/MenuEditor.py
index 0e4b2c4..386b382 100644
--- a/Alacarte/MenuEditor.py
+++ b/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['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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]