@ -26,7 +26,7 @@ pekwmdynamic = False
# for them, where they should be if this was installed properly
# for them, where they should be if this was installed properly
prefix = 'not_set'
prefix = 'not_set'
if prefix == 'not_set':
if prefix == 'not_set':
desktop_dir = '../ desktop-directories/'
desktop_dir = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'desktop-directories/')
else:
else:
desktop_dir = prefix + '/share/desktop-directories/'
desktop_dir = prefix + '/share/desktop-directories/'
@ -619,7 +619,7 @@ def compizboxmenu():
else:
else:
print(spacing + '<menu name="' + category + '">')
print(spacing + '<menu name="' + category + '">')
for app in menu_category.applist:
for app in menu_category.applist:
name = app.name
name = app.name.replace('&', '&')
icon = app.icon
icon = app.icon
command = app.command
command = app.command
path = app.path
path = app.path
@ -629,11 +629,11 @@ def compizboxmenu():
print(('{}<item type="launcher"><name>{}</name>'
print(('{}<item type="launcher"><name>{}</name>'
'<icon>{}</icon>'
'<icon>{}</icon>'
'<command>{}</command></item>').format(spacing,
'<command>{}</command></item>').format(spacing,
name, icon, command))
name, icon, command.replace('&', '&') ))
else:
else:
print(('{}<item type="launcher"><name>{}</name>'
print(('{}<item type="launcher"><name>{}</name>'
'<command>{}</command></item>').format(spacing,
'<command>{}</command></item>').format(spacing,
name, command))
name, command.replace('&', '&') ))
print(spacing + '</menu>')
print(spacing + '</menu>')
if submenu:
if submenu:
print('</menu>')
print('</menu>')