.fvwm/xdg2fvwm.py
changeset 531 89812bfac67c
parent 522 499d9a727fa1
child 641 1ef81c4fd12c
equal deleted inserted replaced
530:3411824f28b7 531:89812bfac67c
    35             cmd = desktop.getExec().rstrip('%FUfu')
    35             cmd = desktop.getExec().rstrip('%FUfu')
    36             if icon == '':
    36             if icon == '':
    37                 print u'AddToMenu "%s" "%s" Exec exec %s' % (name, desktop.getName(), cmd)
    37                 print u'AddToMenu "%s" "%s" Exec exec %s' % (name, desktop.getName(), cmd)
    38             else:
    38             else:
    39                 if icon.rfind('/') == -1 and icon.rfind('.') == -1:
    39                 if icon.rfind('/') == -1 and icon.rfind('.') == -1:
    40                     icon = icon + ".png"
    40                     icon = icon + ".xpm"
    41                 print u'AddToMenu "%s" "%s%%%s%%" Exec exec %s' % (name, desktop.getName(), icon, cmd)
    41                 print u'AddToMenu "%s" "%s%%%s%%" Exec exec %s' % (name, desktop.getName(), icon, cmd)
    42         else:
    42         else:
    43             pass
    43             pass
    44 
    44 
    45 parse_menu(sys_menu, fvwm_menu_name)
    45 parse_menu(sys_menu, fvwm_menu_name)