LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-27-2006, 02:31 AM   #1
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Rep: Reputation: 31
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?
 
Old 07-27-2006, 04:11 AM   #2
jabka
Member
 
Registered: Sep 2005
Distribution: Debian unstable && Kazit (reformated knoppix)
Posts: 194

Rep: Reputation: 31
if kde goto .kde/Autorun and put there symlink
 
Old 07-27-2006, 06:16 AM   #3
NoFlag
LQ Newbie
 
Registered: Jul 2006
Location: Latvia
Distribution: Gentoo
Posts: 9

Rep: Reputation: 0
Wenn you turn off your computer, don't shut those apps, wenn you boot the system they shoul'd start working, works for me.
 
Old 07-27-2006, 06:18 AM   #4
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
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.
 
Old 07-27-2006, 06:22 AM   #5
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

Rep: Reputation: 36
Exclamation 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.

Last edited by pusrob; 07-27-2006 at 06:25 AM.
 
Old 07-27-2006, 06:49 AM   #6
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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
 
Old 07-27-2006, 07:10 AM   #7
jabka
Member
 
Registered: Sep 2005
Distribution: Debian unstable && Kazit (reformated knoppix)
Posts: 194

Rep: Reputation: 31
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
hmm ...
and if the application need X ?
it will proboly fail .

pusrob: my name is Jabka not Yabka ..
 
Old 07-27-2006, 07:18 AM   #8
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
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
 
Old 07-27-2006, 07:21 AM   #9
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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.
 
  


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
How to make aDesklets load on boot Penguin of Wonder Ubuntu 2 02-25-2006 11:47 PM
How to make a programm to start at the end of startup process ayachi Linux - Software 1 04-15-2004 10:31 AM
How to make a default login name appear at login screen? Arodef Linux - General 0 04-12-2004 02:47 PM
how to make 'konsole' load automatically after login rvijay17 Linux - Newbie 3 04-05-2003 08:42 PM
Stuck at login (shell doesn't load) clee01 Linux - General 2 02-15-2001 04:50 PM

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

All times are GMT -5. The time now is 06:53 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