diff --git a/src/xdgmenumaker b/src/xdgmenumaker index 7f2789c..4e77b20 100755 --- a/src/xdgmenumaker +++ b/src/xdgmenumaker @@ -268,6 +268,7 @@ def icon_strip(icon): icon = icon.replace('.xpm', '') return icon + def icon_max_size(icon): # Checks if the icon size is bigger than the requested size and discards # the icon if it is, only allowing sizes smaller or equal to the requested @@ -282,6 +283,7 @@ def icon_max_size(icon): else: return None + def icon_full_path(icon): # If the icon path is absolute and exists, leave it alone. # This takes care of software that has its own icons stored @@ -301,6 +303,7 @@ def icon_full_path(icon): icon = icon_max_size(icon) return icon + def get_entry_info(desktopfile, ico_paths=True): de = dentry.DesktopEntry(filename=desktopfile) @@ -523,6 +526,7 @@ def fluxbox(): if submenu: print('[end] # ({})'.format(apps_name)) + def fvwm(): if submenu: print('DestroyMenu "xdgmenu"') @@ -579,6 +583,7 @@ def fvwm(): i=icon)) print() + def windowmaker(): print('"{}" MENU'.format(apps_name)) for menu_category in menu():