# HG changeset patch # User Oleksandr Gavenko # Date 1346168224 -10800 # Node ID 11e26495ad85d5796d9e89b357e304af33a2013c # Parent 3dd43161fc0e6ee4656a06ff3b1a3f76a67bc475 Assume that icon from desktop file have PNG type. So again comment out paths with large images... diff -r 3dd43161fc0e -r 11e26495ad85 .fvwm/config --- a/.fvwm/config Tue Aug 28 18:24:57 2012 +0300 +++ b/.fvwm/config Tue Aug 28 18:37:04 2012 +0300 @@ -54,9 +54,10 @@ ImagePath +:/usr/share/icons/locolor/32x32/apps ImagePath +:/usr/share/icons/hicolor/32x32/apps ImagePath +:/usr/include/X11/bitmaps/ -ImagePath +:/usr/share/app-install/icons/ -ImagePath +:/usr/share/pixmaps -ImagePath +:/usr/share/icons +# This paths contain large icons for some apps, they make menus look ugly... +# ImagePath +:/usr/share/app-install/icons/ +# ImagePath +:/usr/share/pixmaps +# ImagePath +:/usr/share/icons ################################################################ # Set aliases to common values. diff -r 3dd43161fc0e -r 11e26495ad85 .fvwm/xdg2fvwm.py --- 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)