Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How would I go about getting an SWF to a screensaver on KDE in Fedora Core 6? I've tried the media screensaver... but it just shows an "unsupported" message. I could try converting it to some sort of movie file... would this work?
swf is flash movie format(?) ... a proprietary format not supported under gpl licenced desktops. (I note that swf files are not normally used as screensavers even under windows without first being converted to an appropriate windows (.exe) executable. To use a movie as a screensaver, you need a cli player which can write to the root window. Have fun.
If your flash screensaver is exe, it cannot be run in linux. Unless you use wine.
If it is just a swf file, you can download gflashplayer (version 9 is also available, in beta), and play with it a little bit to see if it can start a swf file in fullscreen mode from command prompt. If it can, you can write a 4-5 line script to just kick start the thing
Yeah, well, first you need to figure out how to run it full screen. Then there is a program called xscreensaver which can be used to run a specific command everytime as an screensaver. So the only thing you need to do is, to know how to get this command.
[hayden@hayden ~]$ xscreensaver
bash: xscreensaver: command not found
I also tried a few other commands that I found here, but found nothing... I tried searching for some kind of configuration file in my home directory, but still found nothing.
Quote:
[hayden@hayden ~]$ xscreensaver-command
bash: xscreensaver-command: command not found
[hayden@hayden ~]$ xscreensaver-demo
bash: xscreensaver-demo: command not found
Thanks for the help so far, I appreciate it.
Also, I'm using KDE... this may use a different screensaver system... I'm led to believe that from reading this.
I think the kde screensaver program is called "kscreensaver"(? or something)... on a command line, try "apropos screensaver". i.e. for me:
Code:
$ apropos screensaver
endgame (6x) - endgame chess screensaver
gears (6x) - draw interlocking gears, for xscreensaver.
queens (6x) - n queens screensaver
XActivateScreenSaver (3) - manipulate the screen saver
XForceScreenSaver (3) - manipulate the screen saver
XGetScreenSaver (3) - manipulate the screen saver
XResetScreenSaver (3) - manipulate the screen saver
xscreensaver-getimage (1) - put some randomly-selected image on the root window
xscreensaver-getimage-file (1) - put a randomly-selected image on the root window
xscreensaver-getimage-video (1) - put a video frame on the root window
xscreensaver-gl-helper (6x) - figure out which X visual to use for GL programs
xscreensaver-text (1) - prints some text to stdout, for use by screen savers.
XSetScreenSaver (3) - manipulate the screen saver
... so I guess I'm using the x-screensaver...
You can also install the xscreensaver (yum install xscreensaver ... I think, remember to remove the kscreensaver or there will be conflicts)
OT:
"Dave. I'm losing my mind Dave. I'm losing my mind. I can feel it..." -- BinaryBob0001 quoting Hal2000 from "2001: A Space Odessey" ---
"They're all dead Dave. Dave, they're all dead. Oh Gordon Bennett! Dead Dave, all they're!" -- Holly from "Red Dwarf" (Episode 1: The End)
Last edited by Simon Bridge; 01-03-2007 at 04:02 AM.
No you don't need to remove kscreensaver. The problem occurs when you want to run kscreensaver and xscreensaver both at the same time. The easy solution is not run kscreensaver (de-select it in the options) and run xscreensaver using ~/.kde/Autostart.
AFAIK, xscreensaver options dialog does not look very good, but it is more functional than kscreensaver. Also, kscreensaver is in itself just a Qt wrapper around xscreensaver.
Well, I got it pretty much working by switching to Xscreensaver and reading this. But now, since I have dual-monitors, flash launches twice, and overlaps itself. Any way I can put together some kind of script to end one of the processes of "gflashplayer" if it detects more than one running?
Well, there are many ways to do what you want:
1. You can write a shell script to launch gflashplayer, and replace gflashplayer in .xscreensaver with this script. In this script, you can test if gflashplayer is already running or not. Something like this:
Code:
#!/bin/bash
if [ -z "$(pidof gflashplayer)" ]; then
# the command to run the flashplayer
fi
2. To kill one of the gflashplayer, you can do similar scripting:
Code:
#!/bin/bash
if [ "$(pidof gflashplayer | wc | awk '{print $2}')" -gt 1 ]; then
pidof gflashplayer | cut -d ' ' -f 2- | xargs kill
fi
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.