Fix condition for icon without extension.
--- a/.fvwm/xdg2fvwm.py Wed Aug 29 11:35:22 2012 +0300
+++ b/.fvwm/xdg2fvwm.py Wed Aug 29 11:45:43 2012 +0300
@@ -32,12 +32,12 @@
elif isinstance(entry, xdg.Menu.MenuEntry):
desktop = DesktopEntry(entry.DesktopEntry.getFileName())
icon = desktop.getIcon()
- if icon.rfind('/') == -1 and icon.rfind('.') == -1:
- icon = icon + ".png"
cmd = desktop.getExec().rstrip('%FUfu')
if icon == '':
print u'AddToMenu "%s" "%s" Exec exec %s' % (name, desktop.getName(), cmd)
else:
+ if icon.rfind('/') == -1 and icon.rfind('.') == -1:
+ icon = icon + ".png"
print u'AddToMenu "%s" "%s%%%s%%" Exec exec %s' % (name, desktop.getName(), icon, cmd)
else:
pass