changeset 519 | 11e26495ad85 |
parent 518 | 3dd43161fc0e |
child 521 | 20ee6c014cef |
--- a/.fvwm/xdg2fvwm.py Tue Aug 28 18:24:57 2012 +0300 +++ b/.fvwm/xdg2fvwm.py Tue Aug 28 18:37:04 2012 +0300 @@ -32,6 +32,9 @@ elif isinstance(entry, xdg.Menu.MenuEntry): desktop = DesktopEntry(entry.DesktopEntry.getFileName()) icon = desktop.getIcon() + icon_slash_idx = icon.rfind('/') + if icon_slash_idx == -1: + icon = icon + ".png" cmd = desktop.getExec().rstrip('%FUfu') if icon == '': print u'AddToMenu "%s" "%s" Exec exec %s' % (name, desktop.getName(), cmd)