Hi,

        This was reported by a Debian user. Please retain the CC to
        449248-forwar...@bugs.debian.org  so that the Debian BTS has a
        record of your contribution.


--8<---------------cut here---------------start------------->8---
Some menu files in /usr/share/menu specify icons without giving their full path.
Apparently, /usr/share/pixmaps is the default location for these icon files.
fvwm fails to find them and floods ~./xsession-errors with messages:

[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from dosemu32x24.xpm
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from camera
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from pcb.xpm
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from 
freqtweak_logo32x18.xpm
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from gnomeradio.xpm
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from gnome-mastermind.xpm
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from dosemu32x24.xpm
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from camera
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from pcb.xpm
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from 
freqtweak_logo32x18.xpm
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from gnomeradio.xpm
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from gnome-mastermind.xpm
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from camera
[FVWM][scanForPixmap]: <<WARNING>> Couldn't load image from camera

fvwm creates individual messages multiple times, which might be a bug on it's
own. In the example above, e.g. "pcb.xpm" is reported twice, "camera" 4 times.

I have tried to fix this by appending /usr/share/pixmaps to fvwm's image path,
which didn't work:

~/.fvwm/config:
ImagePath +:/usr/share/pixmaps

Setting the complete path also failed:
ImagePath /usr/include/X11/bitmaps:/usr/include/X11/pixmaps:/usr/share/pixmaps

It looks like the ImagePath directive is broken, or parsed after icons are
loaded.

When I modify the menu files, e.g. /usr/share/menu/pcb to reflect the full
path; ( icon="/usr/share/pixmaps/pcb.xpm" ) instead of ( icon="pcb.xpm" ),
fvwm finds the icon file and doesn't print messages to ~./xsession-errors
any more for this icon.

I am not sure about the proper way to fix this, but I can think of three
options:
(1)     Include /usr/share/pixmaps with fvwm's ImagePath per compile default.
(2)     Only allow full absolute paths in menu files. A lot of packages would
        need to be fixed then. I don't know what Debain policy says about this.
(3)     Fix the ImagePath directive (if it is truely broken) and include
        /usr/share/pixmaps in the default config file.
--8<---------------cut here---------------end--------------->8---

        I have verified that this affects me as well; 
__> egrep image .xsession-errors | grep -v / | sort -u
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from cairo-clock.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from gspiceui-32x32.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from pouetChess.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from speedcrunch.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from stopwatch.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from xpad.xpm
__> dlocate xpad.xpm
xpad: /usr/share/pixmaps/xpad.xpm
__> ls -lZ /usr/share/pixmaps/xpad.xpm
-rw-r--r--. 1 root root system_u:object_r:usr_t:s0 4724 2009-05-22 04:27 
/usr/share/pixmaps/xpad.xpm

        My imagepath setup is:
# Set the directories to look in for Image files.
ImagePath /usr/share/icons:/usr/share/pixmaps:/usr/share/icons/wm-icons:+
ImagePath +:/usr/X11R6/include/X11/pixmaps/:/usr/X11R6/include/X11/bitmaps/
ImagePath +:/usr/include/X11/bitmaps/:/usr/local/include/pixmaps/
ImagePath +:/usr/local/graphics/xpm/fvwm:/usr/local/graphics/xpm/
ImagePath +:/usr/local/graphics/xpm/3d_pixmaps_1.0/3dpixmaps/
ImagePath +:/usr/local/include/bitmaps/:/usr/local/graphics/images/xpm

        The xpm looks fine using image display programs.

        manoj
-- 
Universities are places of knowledge.  The freshman each bring a little
in with them, and the seniors take none away, so knowledge accumulates.
Manoj Srivastava <sriva...@acm.org> <http://www.golden-gryphon.com/>  
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C

Reply via email to