openbsd-ports/x11/gnome/alacarte/patches/patch-Alacarte_util_py
jasper f2744f75b6 - update alacarte 0.11.6
- specify license version
- use SUBST_CMD

feedback and ok ajacoutot@
2008-11-21 16:56:44 +00:00

31 lines
1.3 KiB
Plaintext

$OpenBSD: patch-Alacarte_util_py,v 1.2 2008/11/21 16:56:44 jasper Exp $
--- Alacarte/util.py.orig Tue Oct 3 01:48:07 2006
+++ Alacarte/util.py Mon May 7 21:12:13 2007
@@ -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('/', '${LOCALBASE}', 'share', 'gnome', '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('/', '${LOCALBASE}', 'share', 'gnome', '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('/', '!!SYSCONFDIR!!', 'xdg', 'menus', file_name)
if os.path.isfile(file_path):
return file_path
return False