Mikhael Goikhman wrote:
>>Excuse me for butting in, but I thought I'd give this idea a go. When I
>>try and use the function I get the following output on the console:
>>import: Unable to read X window image (0x60000e).
>>import: Missing an image filename.
> You probably didn't copy it correctly. The "+ I" should be "&&".
>>Also, I had to comment out the bottom + I Iconify, otherwise I get a
>>kind of 'bouncing' effect, where the window iconises and then
>>immediately deiconises. This could be because the former command is
>>failing though AFAIK.
> It should not bounce, even if PipeRead failed.
Hello, and as usual thanks for replying Mikhael ;)
Apologies about the incorrect line. It was correct to start with, but
probably got mucked up at some point when I was trying to work out the
problem. I have corrected it, but still get the original problem,
complete with the above error message and 'bouncing'.
Is it possible that I have an incorrect version of import? I have:
ara_at_zoidberg ara $ import -version
Version: ImageMagick 5.5.6 04/01/03 Q16
http://www.imagemagick.org
Here are the relevant config lines: (winname_event included just so you
can see how it fits in in the FvwmEvent config)
(.fvwm/Functions)
#ExecUseShell /bin/ksh
DestroyFunc IconifyWithScreenshot
AddToFunc IconifyWithScreenshot
+ I echo "Iconnify running"
+ I Raise
+ I PipeRead "import -geometry 64 -frame -resize 64 -silent -window
$[w.id] $[HOME]/.fvwm/icon.tmp.$[w.id].png \
&& echo WindowStyle IconOverride, Icon $[HOME]/.fvwm/icon.tmp.$[w.id].png \
|| echo Nop"
+ I Iconify
DestroyFunc DeIconifyWithScreenshot
AddToFunc DeIconifyWithScreenshot
+ I echo "deIconnify running"
+ I DestroyWindowStyle
#+ I Test (f file) Exec exec rm -f $HOME/.fvwm/icon.tmp.$[w.id].png
DestroyFunc winame_event
AddToFunc winame_event
+ I ThisWindow ("*ara*") Style "*ara*" Colorset 1
+ I ThisWindow ("*root*") Style "*root*" Colorset 2
(.fvwm/Modules)
*FvwmEvent: StartDelay 3
#*FvwmEvent: Delay 1
#*FvwmEvent: startup "/usr/local/share/sounds/fvwm/gong.au"
*FvwmEvent: window_name winame_event
*FvwmEvent: deiconify DeIconifyWithScreenshot
*FvwmEvent: iconify IconifyWithScreenshot
Module FvwmEvent
I get the "(de)iconify running" messages at the console, so the event
part of the config is working. I did wonder if the inability to read the
Xwindow image might be a permissions problem, in the same way that some
of the nodes in /dev can cause problems with OpenGL, but running:
# import -geometry 64 -frame -resize 64 -silent -window 0x2400019
~~/test.png && echo WindowStyle IconOverride, Icon ~/test.png
At the console as both root and my normal user works fine.
Thanks,
Andy
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Nov 28 2003 - 12:31:17 GMT