|
@ -171,6 +171,8 @@ def main(argv): |
|
|
if not desktop: |
|
|
if not desktop: |
|
|
usage() |
|
|
usage() |
|
|
sys.exit('ERROR: You must specify the output format with -f') |
|
|
sys.exit('ERROR: You must specify the output format with -f') |
|
|
|
|
|
elif desktop == "blackbox": |
|
|
|
|
|
blackboxmenu() |
|
|
elif desktop == "fluxbox": |
|
|
elif desktop == "fluxbox": |
|
|
fluxboxmenu() |
|
|
fluxboxmenu() |
|
|
elif desktop == "windowmaker": |
|
|
elif desktop == "windowmaker": |
|
@ -192,7 +194,7 @@ def usage(): |
|
|
print() |
|
|
print() |
|
|
print('OPTIONS:') |
|
|
print('OPTIONS:') |
|
|
print(' -f, --format the output format to use.') |
|
|
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(' jwm, windowmaker and pekwm') |
|
|
print(' -i, --icons enable support for icons in the') |
|
|
print(' -i, --icons enable support for icons in the') |
|
|
print(' menus. Does not work with windowmaker') |
|
|
print(' menus. Does not work with windowmaker') |
|
@ -393,6 +395,12 @@ def category_icon(category): |
|
|
icon = None |
|
|
icon = None |
|
|
return icon |
|
|
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(): |
|
|
def fluxboxmenu(): |
|
|
if submenu: |
|
|
if submenu: |
|
|