FS#17253 - [xscreensaver] 'webcollage' needs netpbm

Attached to Project: Arch Linux
Opened by Jan Winkelmann (keks) - Monday, 23 November 2009, 08:27 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 06 February 2010, 08:35 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jan de Groot (JGC)
Eric Belanger (Snowman)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When starting the webcollage screensaver, there is a blank screen. When starting it from console, you get an error message. After installing netpbm, there is a different error message, but I am not sure about that one yet.

Additional info:
% pacman -Qo /usr/lib/xscreensaver/webcollage
/usr/lib/xscreensaver/webcollage is owned by xscreensaver 5.10-2

after installing netpbm:
% pacman -Qo /usr/bin/giftopnm
/usr/bin/giftopnm is owned by netpbm 10.35.841-1


Steps to reproduce:
before installing netpbm:
% /usr/lib/xscreensaver/webcollage -root
webcollage: 08:30:44: init: giftopnm not found on $PATH.
This task depends upon

Closed by  Eric Belanger (Snowman)
Saturday, 06 February 2010, 08:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in shared-mime-info-0.71-1
Comment by Eric Belanger (Snowman) - Monday, 23 November 2009, 17:59 GMT
Could you be more specific about the "different" error message? I'm only getting a black screen when trying webcollage. I not sure it it was just waiting for images from the internet of it there was something else.
Comment by Jan Winkelmann (keks) - Wednesday, 25 November 2009, 14:24 GMT
The different error message is:
--
% /usr/lib/xscreensaver/webcollage -root
xscreensaver-getimage: unable to load "/tmp/webcollage-c2900332"
xscreensaver-getimage: reason: Couldn't recognize the image file format for file '/tmp/webcollage-c2900332'
xscreensaver-getimage: unable to load "/tmp/webcollage-c2900332"
xscreensaver-getimage: reason: Couldn't recognize the image file format for file '/tmp/webcollage-c2900332
--
Though file reports:
--
% file /tmp/webcollage-c2900332
/tmp/webcollage-c2900332: Netpbm PPM "rawbits" image data
--
I didn't think this is related to the missing netpbm, so I didn't report it. Might have been a mistake, dunno.
Comment by Eric Belanger (Snowman) - Saturday, 05 December 2009, 06:03 GMT
possible fix: http://bugs.gentoo.org/show_bug.cgi?id=261332#c23

I don't even have /tmp/webcollage-* files. Maybe it hadn't downloaded it yet. I'll test later.
Comment by Michael Gutmann (Gutnix) - Sunday, 13 December 2009, 20:57 GMT
The gentoo-fix works. I (not really knowing, what I was doing) did the steps mentioned there and webcollage works again. Seems this is a bug in shared-mime-info, isn't it? Just in case you want to test it: this is a patch to the mime database

*** /usr/share/mime/packages/freedesktop.org.xml.save 2009-12-13 21:43:35.547031379 +0100
--- /usr/share/mime/packages/freedesktop.org.xml 2009-12-13 21:44:16.020359070 +0100
***************
*** 17025,17036 ****
<magic priority="50">
<match value="P1" type="string" offset="0">
<match value="0x0a" type="byte" offset="2">
- <match value="#" type="string" offset="3"/>
</match>
</match>
<match value="P4" type="string" offset="0">
<match value="0x0a" type="byte" offset="2">
- <match value="#" type="string" offset="3"/>
</match>
</match>
</magic>
--- 17025,17034 ----
***************
*** 17074,17085 ****
<magic priority="50">
<match value="P2" type="string" offset="0">
<match value="0x0a" type="byte" offset="2">
- <match value="#" type="string" offset="3"/>
</match>
</match>
<match value="P5" type="string" offset="0">
<match value="0x0a" type="byte" offset="2">
- <match value="#" type="string" offset="3"/>
</match>
</match>
</magic>
--- 17072,17081 ----
***************
*** 17123,17134 ****
<magic priority="50">
<match value="P3" type="string" offset="0">
<match value="0x0a" type="byte" offset="2">
- <match value="#" type="string" offset="3"/>
</match>
</match>
<match value="P6" type="string" offset="0">
<match value="0x0a" type="byte" offset="2">
- <match value="#" type="string" offset="3"/>
</match>
</match>
</magic>
--- 17119,17128 ----

and this is a little script to test webcollage inside Xephyr:

#!/bin/bash

XEPHYR_DISPLAY=:9
DISPLAY_SIZE=1000x500
XEPHYR="Xephyr -screen"
# XEPHYR="Xnest -geometry"
export PATH=/usr/lib/xscreensaver:$PATH

$XEPHYR $DISPLAY_SIZE $XEPHYR_DISPLAY &
sleep 2 # Waiting for $XEPHYR

export DISPLAY=$XEPHYR_DISPLAY
xeyes & # just for testing
webcollage -root -delay 10 -vvv

Comment by Eric Belanger (Snowman) - Wednesday, 16 December 2009, 07:22 GMT
Jan: Any objections about applying the above patch to the shared-mime-info package?

I can confirm that it fixes the webcollage problem.

Loading...