summaryrefslogtreecommitdiff
path: root/x11/alacarte/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'x11/alacarte/patches/patch-aa')
-rw-r--r--x11/alacarte/patches/patch-aa31
1 files changed, 31 insertions, 0 deletions
diff --git a/x11/alacarte/patches/patch-aa b/x11/alacarte/patches/patch-aa
new file mode 100644
index 00000000000..8c6b9d7b045
--- /dev/null
+++ b/x11/alacarte/patches/patch-aa
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/12/15 19:57:42 drochner Exp $
+
+--- Alacarte/util.py.orig 2006-11-23 23:07:31.000000000 +0100
++++ Alacarte/util.py
+@@ -141,7 +141,7 @@ def getItemPath(file_id):
+ file_path = os.path.join(system_path, 'applications', file_id)
+ if os.path.isfile(file_path):
+ return file_path
+- file_path = os.path.join('/', 'usr', 'share', 'applications', file_id)
++ file_path = os.path.join('@PREFIX@', 'share', 'applications', file_id)
+ if os.path.isfile(file_path):
+ return file_path
+ return False
+@@ -166,7 +166,7 @@ def getDirectoryPath(file_id):
+ file_path = os.path.join(system_path, 'desktop-directories', file_id)
+ if os.path.isfile(file_path):
+ return file_path
+- file_path = os.path.join('/', 'usr', 'share', 'desktop-directories', file_id)
++ file_path = os.path.join('@PREFIX@', 'share', 'desktop-directories', file_id)
+ if os.path.isfile(file_path):
+ return file_path
+ return False
+@@ -187,7 +187,7 @@ def getSystemMenuPath(file_name):
+ file_path = os.path.join(system_path, 'menus', file_name)
+ if os.path.isfile(file_path):
+ return file_path
+- file_path = os.path.join('/', 'etc', 'xdg', 'menus', file_name)
++ file_path = os.path.join('@PKG_SYSCONFBASE@', 'xdg', 'menus', file_name)
+ if os.path.isfile(file_path):
+ return file_path
+ return False