LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   what is the start-up script for slack?.... (https://www.linuxquestions.org/questions/linux-distributions-5/what-is-the-start-up-script-for-slack-26745/)

purpleburple 07-29-2002 03:07 AM

what is the start-up script for slack?....
 
Hi. Is rc.local where i put stuff I want to start on boot-up? Like I want xscreensaver to start up automatically when i startx. What is the official file you should put programs you want to 'auto-start' upon lauching X?

thank you :)

trickykid 07-29-2002 10:16 AM

/etc/rc.d/rc.local

SlCKB0Y 07-29-2002 11:27 AM

Ummmm????
no the above post is wrong.

If you want to start an application each time you launch X you will need to do the following.

If you run a disply manager like xdm, kdm, or gdm then make a file in your home directory called

.xsession

and in that file, place the following lines
#!/bin/sh
exec programname &

exec windowmanager
#eg exec gnome-session

Then save this file and both the program and the particular WM/DE should start.

If your system boots up to console and you dont use a display manager, then the process is the same, however the file in the home dir should be called .xinitrc instead

trickykid 07-29-2002 11:43 AM

Yeah my bad, the rc.local is only for bootup without X...

purpleburple 07-29-2002 11:09 PM

I put xscreensaver & in my .xinitrc file and it doesn't launch the xscreensaver dameon on x start-up. I have even tried exec xscreensaver to no avail.


thanks.

neo77777 07-29-2002 11:33 PM

try to put xscreensaver -nosplash & in your .xinitrc file.


All times are GMT -5. The time now is 05:57 PM.