LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-26-2004, 03:06 AM   #1
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
how to run xscreensaver when x starts


My google searches have turned up nothing and the debian doc about it didn't tell me more than that I had to edit a file with "xscreensaver start" but that didn't work.

So which file do I have to edit with which command to get xscreensaver to work at boot. I think the daemon has to run after x login cause I'm using debian and I get an display error if I run a program as another user than the one that is logged in. So it means the command has to be something with restart for when I login as another user
 
Old 09-26-2004, 03:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
depends what your running inside X and how your logging in. personally i ru fluxbox, and just run "startx" to load X. on this setup, i would put "xscreensaver &" into ~/.xinitrc you could also place it in ~/.xsession. these are low level files for X, kde, gnome whatever would hve additional higher level alternatives.
 
Old 09-26-2004, 04:55 AM   #3
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
I'm using the same setup

Is this correct cause the daemon doesn't run:

Quote:
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)

# invoke global X session script
. /etc/X11/Xsession

xscreensaver &
 
Old 05-19-2005, 12:56 PM   #4
azucaro
Member
 
Registered: Jan 2005
Location: Washington, D.C.
Distribution: Arch (Custom), CentOS
Posts: 239

Rep: Reputation: 30
In that final line in your .xinitrc, I believe you need to add "exec" to the front, like so:

exec xscreensaver &

I would put it after your "exec startkde" statement, but that is a matter of preference. If your .xinitrc can't find the xscreensaver command (and you are sure that it is installed), it is probably just a path issue and you would need to specify the full path to the xscreensaver executable.
 
Old 05-19-2005, 03:09 PM   #5
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
Well as you might not have seen the last post was on 26 spetember last year I put in my .xinitrc file and it was ok cause I don't use sessions I think. Thanks anyway though
 
Old 05-20-2005, 05:25 PM   #6
azucaro
Member
 
Registered: Jan 2005
Location: Washington, D.C.
Distribution: Arch (Custom), CentOS
Posts: 239

Rep: Reputation: 30
Nope, didn't check the stamp, but with no post to say that it worked for you, I didn't assume anything!

Glad you got it working though...
 
  


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
XScreenSaver Can't Run PICOspark Linux - General 2 12-03-2004 03:32 PM
run command evertime linux starts up GUIPenguin Linux - General 8 11-13-2004 02:06 AM
Run a program when a connection starts hamtavs Linux - Software 1 09-21-2004 05:11 AM
xscreensaver installed, but no xscreensaver-demo command? dalesan Linux - Software 7 09-01-2004 01:06 PM
Run programs automatically when KDE starts koyi Linux - General 2 09-01-2003 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:36 PM.

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