LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-15-2010, 01:39 AM   #1
ricky_cardo
Member
 
Registered: Feb 2006
Location: Syracuse, NY
Distribution: Slackware64-Current
Posts: 210

Rep: Reputation: 76
Is there a trick to get webcollage working on Xscreensaver?


While I will not dispute this is not for everyone, I was wondering is there a trick to get webcollage working in Slack 13?

It works from the command prompt with something like this:
/usr/libexec/xscreensaver/webcollage -vvv -size '800x600' -imagemap crazy

Just wondering why the Xscreensaver portion seems to be defunct.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-15-2010, 06:16 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,906

Rep: Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026
If you run it normally you see messages
Code:
xscreensaver-getimage: reason: Couldn't recognize the image file format for file '/tmp/webcollage-b66c23db'
Have a look at this http://bugs.gentoo.org/show_bug.cgi?id=261332
Posts 19 and 23 are the significant ones.

Alternatively, if you don't want to modify the freedesktop.org mime types, my patch below seems to work. (on 64-current anyway)

webcollage.patch:
Code:
#  Patch for webcollage perl script
#
#  Fixes xscreensaver issue:
#   "xscreensaver-getimage: reason: Couldn't recognize the image file format"
#
#  Without the .ppm extension, gtk+/gdk doesn't recognise the file as a .ppm 
#  as the freedesktop.org mime types expect a '#' at offset 3.
#
#  Apply with:
#    cd /usr/libexec/xscreensaver
#    patch < this_file.patch

--- webcollage.old      2010-03-15 11:35:01.846492572 +0000
+++ webcollage  2010-03-15 11:33:00.886492477 +0000
@@ -2709,13 +2709,13 @@
 #
 ##############################################################################
 
-my $image_ppm   = sprintf ("%s/webcollage-%08x",
+my $image_ppm   = sprintf ("%s/webcollage-%08x.ppm",
                            ($ENV{TMPDIR} ? $ENV{TMPDIR} : "/tmp"),
                            rand(0xFFFFFFFF));
-my $image_tmp1  = sprintf ("%s/webcollage-1-%08x",
+my $image_tmp1  = sprintf ("%s/webcollage-1-%08x.ppm",
                            ($ENV{TMPDIR} ? $ENV{TMPDIR} : "/tmp"),
                            rand(0xFFFFFFFF));
-my $image_tmp2  = sprintf ("%s/webcollage-2-%08x",
+my $image_tmp2  = sprintf ("%s/webcollage-2-%08x.ppm",
                            ($ENV{TMPDIR} ? $ENV{TMPDIR} : "/tmp"),
                            rand(0xFFFFFFFF));

Last edited by GazL; 03-15-2010 at 08:12 AM.
 
2 members found this post helpful.
Old 07-19-2010, 01:06 PM   #3
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,524

Rep: Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493
From what I've heard about Webcollage, I'm not sure you'd want it to be working by default...
 
Old 07-20-2010, 03:53 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,906

Rep: Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026
Quote:
Originally Posted by volkerdi View Post
From what I've heard about Webcollage, I'm not sure you'd want it to be working by default...
Yep, we had a good discussion on here a few years back about its dangers. And at that point I was in favour of removing it entirely.

However, its saving grace is that it can be run against images on local directories instead of images pulled randomly from the web, so it does have safer uses too.

My view is that if you're going to ship it, it might as well be a working version. There's really not much point shipping a broken one.


Not that I use it. I like the 'lockward' module.
 
Old 11-15-2010, 06:38 PM   #5
.oOZe.
LQ Newbie
 
Registered: May 2004
Location: Vancouver, BC
Distribution: FC14
Posts: 16

Rep: Reputation: 2
Thanks for the patch! This issue started for me after upgrading from FC13 to FC14.
 
Old 01-20-2011, 02:03 PM   #6
.oOZe.
LQ Newbie
 
Registered: May 2004
Location: Vancouver, BC
Distribution: FC14
Posts: 16

Rep: Reputation: 2
Lightbulb

So I ran into the same issue with vidwhacker which uses some of the same functions to generate images as webcollage but it turns out the culprit is actually the shared-mime-info package: http://bugs.gentoo.org/show_bug.cgi?id=261332

It seems that as of 0.51 someone added
Code:
<match value="#" type="string" offset="3"/>
to each image/x-portable-* entry in the file freedesktop.org.xml found in (/usr/share/mime/packages).

After I commented out those lines and ran
Code:
update-mime-database /usr/share/mime
and then reverted the changes previously made to webcollage and vidwhacker they both generate images without errors.

Hope that helps somebody.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vim :gui trick and undo-trick dazdaz Linux - Software 3 09-10-2007 02:45 PM
is there a trick to getting pbbuttonsd working? johnMG Debian 5 03-04-2005 09:10 PM
Using Webcollage as a desktop backgroung - Help? Boooaz Linux - Newbie 1 12-14-2004 04:06 PM
xscreensaver not working geomatt Slackware 5 11-29-2004 01:31 PM
How to get XScreenSaver working under 'root' dabump Linux - Software 1 08-25-2003 02:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration