|
|
@ -29,7 +29,8 @@ def walk_menu(entry):
|
|
|
|
map(walk_menu, entry.get_contents())
|
|
|
|
map(walk_menu, entry.get_contents())
|
|
|
|
print '</menu>'
|
|
|
|
print '</menu>'
|
|
|
|
elif entry.get_type() == gmenu.TYPE_ENTRY and not entry.is_excluded:
|
|
|
|
elif entry.get_type() == gmenu.TYPE_ENTRY and not entry.is_excluded:
|
|
|
|
print ' <item label="%s">' % escape(entry.get_name())
|
|
|
|
print ' <item label="%s">' % \
|
|
|
|
|
|
|
|
escape(entry.get_name().replace('"', ''))
|
|
|
|
command = re.sub(' [^ ]*%[fFuUdDnNickvm]', '', entry.get_exec())
|
|
|
|
command = re.sub(' [^ ]*%[fFuUdDnNickvm]', '', entry.get_exec())
|
|
|
|
if entry.launch_in_terminal:
|
|
|
|
if entry.launch_in_terminal:
|
|
|
|
command = 'xterm -title "%s" -e %s' % \
|
|
|
|
command = 'xterm -title "%s" -e %s' % \
|
|
|
|