Discussion:
FVWM: Fw: missing images using .fvwm2rc
Stan Dickerson
2012-05-01 19:15:46 UTC
Permalink
I created a ".fvwm2rc" file using fvwm-themes-config --expand-rc. Using
"fvwm -f .fvmw2rc" on two PCs, one looks OK but the other is missing the
window decorations and the FVWM image on the taskbar.
"/usr/local/share/fvwm" is the same. I don't think FVWM_USERDIR or
FT_DATADIR is set on either. What am I missing?

Thanks

Stan Dickerson
Thomas Adam
2012-05-01 20:29:40 UTC
Permalink
I created a ".fvwm2rc" file using fvwm-themes-config --expand-rc.  Using
"fvwm -f .fvmw2rc" on two PCs, one looks OK but the other is missing the
window decorations and the FVWM image on the taskbar.
"/usr/local/share/fvwm" is the same.  I don't think FVWM_USERDIR or
FT_DATADIR is set on either.  What am I missing?
The logs from ~/.xsessio-errors

-- Thomas Adam
Dan Espen
2012-05-01 20:34:03 UTC
Permalink
Post by Stan Dickerson
I created a ".fvwm2rc" file using fvwm-themes-config --expand-rc.
Using "fvwm -f .fvmw2rc" on two PCs, one looks OK but the other is
missing the window decorations and the FVWM image on the
taskbar. "/usr/local/share/fvwm" is the same. I don't think
FVWM_USERDIR or FT_DATADIR is set on either. What am I missing?
Sorry, no idea about fvwm-themes.

Any program started by FVWM or it's children will have
FVWM_USERDIR set.

Not sure what FT_DATADIR is, ah, looks like it's something in
FVWM Themes.

When Fvwm is built, it creates it's own built in IMAGE PATH.
Use:

fvwm-config --default-imagepath

to see that path.

Look in your .fvwm2rc to see if imagepath is modified in any way.

Then look in your .xsession_errors to see if Fvwm is printing
any errors looking for images.
--
Dan Espen
Stan Dickerson
2012-05-02 02:53:03 UTC
Permalink
Post by Stan Dickerson
I created a ".fvwm2rc" file using fvwm-themes-config --expand-rc.
Using "fvwm -f .fvmw2rc" on two PCs, one looks OK but the other is
missing the window decorations and the FVWM image on the
taskbar. "/usr/local/share/fvwm" is the same. I don't think
FVWM_USERDIR or FT_DATADIR is set on either. What am I missing?
Sorry, no idea about fvwm-themes.

Any program started by FVWM or it's children will have
FVWM_USERDIR set.

Not sure what FT_DATADIR is, ah, looks like it's something in
FVWM Themes.

When Fvwm is built, it creates it's own built in IMAGE PATH.
Use:

fvwm-config --default-imagepath

to see that path.

Look in your .fvwm2rc to see if imagepath is modified in any way.

Then look in your .xsession_errors to see if Fvwm is printing
any errors looking for images.

-- Dan Espen

fvwm-config --default-imagepath returns:
/usr/include/X11/bitmaps:/usr/include/X11/pixmaps

I noticed that one has XPM image support and the one with the missing
images does not.

I couldn't find xsession_errors with "-D" so I added "Module FvwmDebug"
to ".fvwm2rc."

I got numerous xpm errors including:

[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-iconify.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-maximize.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-shade.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-stick.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-raise.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-lower.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-delete.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-close.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-destroy.xpm

Does that mean I need to install libXpm?

Thanks

*Stan Dickerson
*
Thomas Adam
2012-05-02 07:04:10 UTC
Permalink
I noticed that one has XPM  image support and the one with the missing
images does not.
I couldn't find xsession_errors with "-D" so I added "Module FvwmDebug" to
".fvwm2rc."
Because it's typically .xsession-errors
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-iconify.xpm
Then install libxpm-dev (or similar) and compile FVWM with XPM
support. You can determine if this is the case already with:

fvwm-config -s | grep -i xpm

If that returns nothing, then you'll know you're missing XP< support.

But installing just libxpm isn't enough.

-- Thomas Adam
Thomas Funk
2012-05-02 07:08:05 UTC
Permalink
Post by Stan Dickerson
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-iconify.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-maximize.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-shade.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-stick.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-raise.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-lower.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-delete.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-close.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-destroy.xpm
Does that mean I need to install libXpm?
You haven't installed the wm-icons package.
Post by Stan Dickerson
/usr/include/X11/bitmaps:/usr/include/X11/pixmaps
Your image path should then look like this:
/usr/include/X11/bitmaps:/usr/include/X11/pixmaps:/usr/share/icons/wm-icons:

Thomas
Thomas Adam
2012-05-02 08:05:06 UTC
Permalink
Post by Thomas Funk
You haven't installed the wm-icons package.
Maybe, maybe not.
No -- nothing modifies that by default unless the user does, and even
then it should be:

ImagePath +:/some/random/path

I've just commit a fix to CVS to improve on the error diagnostics
about loading missing files.

-- Thomas Adam
Stan Dickerson
2012-05-02 13:11:14 UTC
Permalink
----- Original Message -----
From: Thomas Funk
To: Thomas Adam
Cc: Stan Dickerson ; ***@lists.math.uh.edu ;
***@energycontrolsystems.com
Sent: Wednesday, May 02, 2012 6:54 AM
Subject: Re: FVWM: Fw: missing images using .fvwm2rc
Post by Thomas Funk
You haven't installed the wm-icons package.
Maybe, maybe not.

because wm-icons is the only package which has folders like menu, mini, norm
and the error entries e.g. " ... menu/window-iconify.xpm" points to this. On
the
other hand wm-icons is one of the few or only package which has icons like
window-lower.xpm, window-shade.xpm etc. Also the most packages have png
or svg icons.
No -- nothing modifies that by default unless the user does, and even
then it should be:


ImagePath +:/some/random/path

sorry, I suppose that - the image path entry should look like this after the
installation:
ImagePath
usr/include/X11/bitmaps:/usr/include/X11/pixmaps:/usr/share/icons/wm-icons:


Thomas
************************************************************************************
fvwm version 2.6.4

On CENTOS 6 (the PC with decorations has CENTOS 4),
yum install libXpm reports: "Package libXpm-3.5.8-2.el6.i686 already
installed and latest version"
fvwm/configure: "With XPM image support? no: Can't find
working libXpm"

There is no "/usr/share/icons/wm-icons" on either PC. I started with a
Windows XP theme.

locate "wm-icons" on both PCs:
/usr/local/share/fvwm/themes/default/settings/iconstyles/wm-icons
/usr/local/share/fvwm/themes/default/settings/iconstyles/wm-icons-menu

locate "window-iconify.xpm" on both PCs:
/usr/local/share/fvwm/images/16x16-kde/window-iconify.xpm
/usr/local/share/fvwm/images/48x48-infox/window-iconify.xpm
/usr/local/share/fvwm/images/button/as-window-iconify.xpm
/usr/local/share/fvwm/images/button/mac-window-iconify.xpm
/usr/local/share/fvwm/images/button/win-window-iconify.xpm

Downloaded "wm-icons-0.4.0-1.noarch.rpm" and rpm -iv on both PCs -> no
change in decorations.

On CENTOS 6 there are also errors such as:
[fvwm][ReadDecorFace]: <<ERROR>> couldn't load pixmap
button/close-activeup.png

locate close-activeup.png on both PCs:
/usr/local/share/fvwm/themes/redmondxp/images/button/close-activeup.png

Stan
Thomas Adam
2012-05-02 13:30:13 UTC
Permalink
Post by Stan Dickerson
On CENTOS 6 (the PC with decorations has CENTOS 4),
  yum install libXpm reports: "Package libXpm-3.5.8-2.el6.i686 already
installed and latest version"
  fvwm/configure:  "With XPM image support?             no: Can't find
working libXpm"
I think RH has -devel packages for header files. You *do* understand
the difference, right?

-- Thomas Adam
Thomas Funk
2012-05-02 07:14:08 UTC
Permalink
Post by Stan Dickerson
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-iconify.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-maximize.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-shade.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-stick.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-raise.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-lower.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-delete.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-close.xpm
[fvwm][scanForPixmap]: <<WARNING>> Couldn't load image from
menu/window-destroy.xpm
Does that mean I need to install libXpm?
You haven't installed the wm-icons package.
Post by Stan Dickerson
/usr/include/X11/bitmaps:/usr/include/X11/pixmaps
Your image path should then look like this:
/usr/include/X11/bitmaps:/usr/include/X11/pixmaps:/usr/share/icons/wm-icons:

Thomas
Stan Dickerson
2012-05-02 14:42:25 UTC
Permalink
----- Original Message -----
From: Thomas Funk
To: Stan Dickerson ; ***@lists.math.uh.edu
Cc: ***@energycontrolsystems.com
Sent: Wednesday, May 02, 2012 9:51 AM
Subject: Aw: Re: FVWM: Fw: missing images using .fvwm2rc
Post by Stan Dickerson
There is no "/usr/share/icons/wm-icons" on either PC.
Right, only on Debian systems wm-icons will installed there :S .
Post by Stan Dickerson
/usr/local/share/fvwm/images/16x16-kde/window-iconify.xpm
/usr/local/share/fvwm/images/48x48-infox/window-iconify.xpm
/usr/local/share/fvwm/images/button/as-window-iconify.xpm
[fvwm][ReadDecorFace]: <<ERROR>> couldn't load pixmap
button/close-activeup.png
/usr/local/share/fvwm/themes/redmondxp/images/button/close-activeup.png
Ah, there it is ... your ImagPath doesn't contain
'/usr/local/share/fvwm/images/'
and '/usr/local/share/fvwm/themes/redmondxp/images/'

In your config only 'button/close.png' is written. Each image path will
append infront
of 'button/close.png'. No match, error occur ...

Thomas
*****************************************************
Thanks! I fixed the ImagePath statement in .fvwm2rc and now have
decorations.

I found that FT_DATADIR is set in .fvwm2rc and I added SetEnv FVWM_USERDIR.
This is the current ImagePath section in .fvwm2rc:
SetEnv FT_DATADIR '/usr/local/share/fvwm'
SetEnv FVWM_USERDIR '/usr/local/share/fvwm/themes/redmondxp/'
ImagePath
$FVWM_USERDIR/images:$FT_DATADIR/images:/usr/include/X11/bitmaps:/usr/include/X11/pixmaps
ImagePath +
Thomas Adam
2012-05-02 14:45:55 UTC
Permalink
Post by Stan Dickerson
I found that FT_DATADIR is set in .fvwm2rc and I added SetEnv FVWM_USERDIR.
  SetEnv FT_DATADIR '/usr/local/share/fvwm'
  SetEnv FVWM_USERDIR '/usr/local/share/fvwm/themes/redmondxp/'
No. Don't do this.

-- Thomas Adam
Stan Dickerson
2012-05-02 15:07:11 UTC
Permalink
----- Original Message -----
From: "Thomas Adam" <***@fvwm.org>
To: "Stan Dickerson" <***@energycontrolsystems.com>
Cc: <***@lists.math.uh.edu>; <***@energycontrolsystems.com>
Sent: Wednesday, May 02, 2012 10:45 AM
Subject: Re: FVWM: Fw: missing images using .fvwm2rc
Post by Stan Dickerson
I found that FT_DATADIR is set in .fvwm2rc and I added SetEnv
FVWM_USERDIR.
SetEnv FT_DATADIR '/usr/local/share/fvwm'
SetEnv FVWM_USERDIR '/usr/local/share/fvwm/themes/redmondxp/'
No. Don't do this.

-- Thomas Adam

*********************************
This is for a kiosk where the users will only be able to access our Java
applets and will have no control of the theme.

Stan

Loading...