Alacarte is an easy-to-use menu editor for GNOME that can add and edit new entries and menus. It works with the freedesktop.org menu specification and should work with any desktop environment that uses the spec.
31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
$OpenBSD: patch-Alacarte_util_py,v 1.1.1.1 2007/11/10 16:23:55 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
|