Browse Source

Fix crash when generating submenu and application icon doesn't exist.

pull/1/merge
Jeff Woods 12 years ago
parent
commit
a91a914a84
  1. 5
      src/xdgmenumaker

5
src/xdgmenumaker

@ -269,6 +269,9 @@ def fluxboxmenu():
spacing = ' ' spacing = ' '
if seticon == True: if seticon == True:
app_icon = icon_full_path(applications_icon) app_icon = icon_full_path(applications_icon)
if app_icon is None:
print '[submenu] ('+applications+')'
else:
print '[submenu] ('+applications+') <'+app_icon+'>' print '[submenu] ('+applications+') <'+app_icon+'>'
else: else:
print '[submenu] ('+applications+')' print '[submenu] ('+applications+')'
@ -316,6 +319,8 @@ def icewmmenu():
spacing = ' ' spacing = ' '
if seticon == True: if seticon == True:
app_icon = icon_full_path(applications_icon) app_icon = icon_full_path(applications_icon)
if app_icon is None:
app_icon = "_none_"
print 'menu "'+applications+'" '+app_icon+' {' print 'menu "'+applications+'" '+app_icon+' {'
else: else:
print 'menu "'+applications+'" _none_ {' print 'menu "'+applications+'" _none_ {'

Loading…
Cancel
Save