$NetBSD$

--- 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
