Use XPM files instead of PNG to prevent loading large icons.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 30 Aug 2012 15:40:51 +0300
changeset 531 89812bfac67c
parent 530 3411824f28b7
child 532 e76d00bc8ceb
Use XPM files instead of PNG to prevent loading large icons.
.fvwm/config
.fvwm/xdg2fvwm.py
--- a/.fvwm/config	Thu Aug 30 15:39:49 2012 +0300
+++ b/.fvwm/config	Thu Aug 30 15:40:51 2012 +0300
@@ -54,8 +54,8 @@
 ImagePath +:/usr/share/icons/locolor/32x32/apps
 ImagePath +:/usr/share/icons/hicolor/32x32/apps
 # 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/app-install/icons/
+ImagePath +:/usr/share/pixmaps
 
 ################################################################
 # Set aliases to common values.
--- a/.fvwm/xdg2fvwm.py	Thu Aug 30 15:39:49 2012 +0300
+++ b/.fvwm/xdg2fvwm.py	Thu Aug 30 15:40:51 2012 +0300
@@ -37,7 +37,7 @@
                 print u'AddToMenu "%s" "%s" Exec exec %s' % (name, desktop.getName(), cmd)
             else:
                 if icon.rfind('/') == -1 and icon.rfind('.') == -1:
-                    icon = icon + ".png"
+                    icon = icon + ".xpm"
                 print u'AddToMenu "%s" "%s%%%s%%" Exec exec %s' % (name, desktop.getName(), icon, cmd)
         else:
             pass