Browse Source

Add support for Blackbox

Blackbox menus are exactly the same as Fluxbox menus. They just don't
support icons.
pull/5/head
George Vlahavas 9 years ago
parent
commit
db0fb24433
  1. 10
      src/xdgmenumaker

10
src/xdgmenumaker

@ -171,6 +171,8 @@ def main(argv):
if not desktop:
usage()
sys.exit('ERROR: You must specify the output format with -f')
elif desktop == "blackbox":
blackboxmenu()
elif desktop == "fluxbox":
fluxboxmenu()
elif desktop == "windowmaker":
@ -192,7 +194,7 @@ def usage():
print()
print('OPTIONS:')
print(' -f, --format the output format to use.')
print(' Valid options are fluxbox, icewm,')
print(' Valid options are blackbox, fluxbox, icewm,')
print(' jwm, windowmaker and pekwm')
print(' -i, --icons enable support for icons in the')
print(' menus. Does not work with windowmaker')
@ -393,6 +395,12 @@ def category_icon(category):
icon = None
return icon
def blackboxmenu():
# Blackbox menus are the same as Fluxbox menus. They just don't support
# icons.
global seticon
seticon = False
fluxboxmenu()
def fluxboxmenu():
if submenu:

Loading…
Cancel
Save