I have this in ~/.fvwm/config:
Style "XTerm" Icon null.xpm, SloppyFocus, IconBox 200x200-1+8
where null.xpm is intended to call /usr/share/pixmaps/fvwm/null.xpm, a
zero-byte file I created.
When startx is called, it gets this from ~/.xinitrc:
xterm -geometry 125x58+964+56 -iconic -title syrano -e ssh syrano &
No matter what I list in config, the xterm icon that comes up matches
/usr/share/pixmaps/mini.xterm_48x48.xpm (an icon with a blue `T' over a red
`X'). If I copy some other xpm on top of that and do startx again, I still
get the original mini.xterm_48x48.xpm image. Furthermore,
/usr/share/pixmaps/mini.xterm_48x48.xpm still shows an access time from weeks
ago. It seems that fvwm has that image cached or built in somehow. Once
fvwm is up, if I call "xterm &" and convert that to an icon, it appears as a
live window screenshot, not as mini.xterm_48x48.xpm.
In Debian 7, calling null.xpm gives me no xpm icon, just a title bar labeled
"syrano". I prefer this because it's very small.
Thanks.
>> I can't figure out where fvwm is getting the xpm icon for an xterm.
>> ...
>> I have this in ~/.fvwm/config:
>> Style "XTerm" Icon null.xpm, SloppyFocus, IconBox 200x200-1+8
>> where null.xpm is intended to call /usr/share/pixmaps/fvwm/null.xpm, a
>> zero-byte file I created.
On Monday, September 17, 2018 9:41 AM, Thomas Schmitt replied:
> Maybe fvwm is not happy with the zero size.
> What happens if you put a file with a picture there ?
If I put ANY other xpm there, I still see an icon that matches
/usr/share/pixmaps/mini.xterm_48x48.xpm or a live window screenshot.
> Did you already try searches like
> find /usr -name mini.xterm_48x48.xpm
In fact I obsessively viewed all 386 xpm files on the whole system. None
other than /usr/share/pixmaps/mini.xterm_48x48.xpm matched the icon
displayed.
> Does "live window screenshot" mean that the icon is willing to execute
> blindly toggled shell commands ?
Yes. If I put the cursor in the little screenshot and type a command (echoed
in a font too small to read), it does execute there.
> The icon pixmap is probably
> /usr/share/X11/fvwm2/pixmaps/display.xpm
> but the same one is also in
> /usr/share/pixmaps/fvwm/display.xpm
I have the second of those. It gives an error about a corrupt image when I
try to display it.
On Monday, September 17, 2018 12:43 PM, David Wright replied:
> I think the intention is that you use NoIcon for no icon.
I just tried this, and it causes .xinitrc to bring up the xterms in the
background with no icon whatsoever. They show in a process list (ps), and if
I right-click on the desktop I can bring them up from the fvwm menu. That's
not a bad solution (two clicks), but I was a little happier when I had an
icon with a small name bar and no picture (one click).
Thanks to all for the suggestions.
________________________________________
From: David Wright [deb...@lionunicorn.co.uk]
Sent: Monday, September 17, 2018 12:43 PM
To: debia...@lists.debian.org
Subject: Re: where does fvwm get its xterm icon?
>> No matter what I list in config, the xterm icon that comes up matches
>> /usr/share/pixmaps/mini.xterm_48x48.xpm (an icon with a blue `T' over a red
>> `X'). If I copy some other xpm on top of that and do startx again, I still
>> get the original mini.xterm_48x48.xpm image.
On Tuesday, September 18, 2018 2:15 AM, Thomas Schmitt asked:
> Did you try the settings which helped me to get some normal icon and
> to deactivate the shell as long as the window is iconized ?
>
> Style "XTerm" IconOverride
> Style "XTerm" Icon display.xpm
I just tried that and called gimp.xpm. On calling startx, I still got the
inevitable mini.xterm_48x48.xpm image. Thanks for the idea.
________________________________________
From: Thomas Schmitt [scdb...@gmx.net]
Sent: Tuesday, September 18, 2018 2:15 AM
To: debia...@lists.debian.org
Cc: Kleene, Steven (kleenesj)
Subject: Re: where does fvwm get its xterm icon?
Hi,
>> I can't figure out where fvwm is getting the xpm icon for an xterm.
On Wednesday, September 19, 2018 2:27 PM, David Wright replied:
> ... If you look at the man page, it explains the
> old option -n and says "If no suitable icon is found, xterm provides a
> compiled-in pixmap" which would correspond to your reported behaviour
> as it can't find /usr/share/pixmaps/fvwm/null.xpm.
Thanks. That could to explain how it comes up with the mini.xterm_48x48.xpm
image in /usr/share/pixmaps even when I overwrite it with something else.
As a test, I put this line into ~/.fvwm/config:
Style xterm Icon /usr/share/pixmaps/gimp.xpm
I also had these in ~/.xinitrc:
xterm -geometry 125x58+964+56 -iconic -title syrano -e ssh syrano &
xterm -geometry 125x58+964+56 -iconic -title numbat -e ssh numbat &
Then I went through many cycles of exiting fvwm and calling startx. The
icons for the two xterms varied a lot from one trial to the next but were
always either the mini.xterm_48x48.xpm image, a live screenshot, or the
intended gimp.xpm. At some point I noticed that whichever xterm icon came up
first usually got gimp.xpm, while the second xterm got one of the other two
images. This seemed to be time-dependent, in other words. When I added
"sleep 1" between the two xterm calls in .xinitrc, I consistently got
gimp.xpm for both icons, as well as for any xterms I called from the command
line and iconized.
For reasons I can't guess, this did not work with another standard xpm
(inkspace.xpm). It did work with smplayer.xpm. It did not work with my
0-byte null.xpm or a 1-pixel red xpm that I created. The icons display in
reproducible positions on the desktop, but they are not the same positions I
saw before switching to gimp.xpm. I have a little more work to do.
Thanks again.
________________________________________
From: David Wright [deb...@lionunicorn.co.uk]
Sent: Wednesday, September 19, 2018 2:27 PM
To: debia...@lists.debian.org
Subject: Re: where does fvwm get its xterm icon?
As you seem to be having trouble, here's a fuller answer than the one
>> That sounds like a different problem: a race between fvwm and the
>> xterms over which order they start in. The manner in which the race
>> affects me is that my (open) xterms get mapped all over the place
>> instead of where I want them placed. The fix is simple except that
>> the package required never made it past squeeze, so you'd need to
>> visit the archives, specifically:
On Saturday, September 22, 2018 1:55 AM, Nicolas George responded:
> The real fix is even simpler: start your X11 clients from Fvwm's
> InitFunction, not from .xinitrc.
Good idea. But I (original poster) just tried it, and once again the icon
for the xterm appeared as a live screenshot instead of smplayer.xpm, which I
had defined (for testing purposes) in ~/.fvwm/config. Including "Test
(Init)" in the InitFunction didn't help. Thanks.