LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   make a programm load at login (https://www.linuxquestions.org/questions/debian-26/make-a-programm-load-at-login-468131/)

binary_dreamer 07-27-2006 02:31 AM

make a programm load at login
 
i am running sarge and i would like to make gaim and azureus to load when i login as user. any ideas?

jabka 07-27-2006 04:11 AM

if kde goto .kde/Autorun and put there symlink

NoFlag 07-27-2006 06:16 AM

Wenn you turn off your computer, don't shut those apps, wenn you boot the system they shoul'd start working, works for me.

binary_dreamer 07-27-2006 06:18 AM

that is not a solution. what happens when user b of the system logs in and then shuts down the pc? the when i will login i will have to start those programms manually.

pusrob 07-27-2006 06:22 AM

Exactly
 
Dear Binary-dreamer!
What Yabka and NoFlag said is good, but look out: don't do both of the suggestions, becouse it is possible, that the same app will start twice, and you will have 2 running applications, which are the same (2 gaims running in the same time). When user b logs in and turns the PC off, you don't have to start the apps when you log in, becouse KDE remembers, for every user, which applications were running when you logged out, so it will start them.

Dutch Master 07-27-2006 06:49 AM

You're better off with a small script, started from initd. It's quite simple, like this:
Code:

#! bin/sh
#
# script for starting program xyz at boottime

/full/path/to/application-1
/full/path/to/application-2

exit 0

Save the file with an appropiate name (like 'connectme.sh') in your home dir, make it executable with chmod +x <filename> and add a symlink to the correct rc-runlevel dir.

Learn more on scripting from this link:study:

jabka 07-27-2006 07:10 AM

Quote:

Originally Posted by Dutch Master
You're better off with a small script, started from initd. It's quite simple, like this:
Code:

#! bin/sh
#
# script for starting program xyz at boottime

/full/path/to/application-1
/full/path/to/application-2

exit 0

Save the file with an appropiate name (like 'connectme.sh') in your home dir, make it executable with chmod +x <filename> and add a symlink to the correct rc-runlevel dir.

Learn more on scripting from this link:study:

hmm ...
and if the application need X ?
it will proboly fail .

pusrob: my name is Jabka not Yabka ..

prozac 07-27-2006 07:18 AM

put symlink(s) to the program you want to run in $HOME/.kde/Autostart and kde will do its best to run them when you login everytime ;)

Dutch Master 07-27-2006 07:21 AM

No problem. In the rc dir's you'll find that the scripts have names starting with S and a number. This number controls the sequence of execution of the scripts. Add S20 in the symlink (ln -s <path/to/script> S20<scriptname>) so X has time to start :) To be sure you may increase the number to 25 or 30.


All times are GMT -5. The time now is 04:30 PM.