LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-21-2006, 12:39 AM   #1
wittyguysuku
LQ Newbie
 
Registered: Jul 2003
Location: India
Distribution: Red Hat Linux, SUN Solaris
Posts: 22

Rep: Reputation: 15
Smile Running an application at startup for a specific user


Hi all,
How can I run an application automatically, when a user just logs in?
But I couldn't edit /etc/rc.local as I'm not a root user.
Whatever I do for this shouldn't affect any other user account.

Thanks,
Sukumar
 
Old 09-21-2006, 01:27 AM   #2
Mark2
LQ Newbie
 
Registered: Apr 2006
Location: Savona, Italy
Posts: 2

Rep: Reputation: 0
If you use a XWindow session there is a file called .xsession in your home from which you can start applications.

If you are in a console window there i salways the old method in .bashrc.

If you are speaking about a Desktop manager (Gnome, Kde) there are frendly interfaces to configure which application to start at login: for Gnome there is Menu->Resorces->Preferences->Session->Startup.
 
Old 09-21-2006, 01:33 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
If it's at login only, add something to .bash_login (create if it does not exist). If it must run for every shell that you open, add it to .bash_profile (again, create if it does not exists). On my slackbox, profile overrides login.

PS 1) please note the dot at the beginning of the filename(s)
PS 2) rc.local applies to every user
 
Old 09-21-2006, 01:45 AM   #4
wittyguysuku
LQ Newbie
 
Registered: Jul 2003
Location: India
Distribution: Red Hat Linux, SUN Solaris
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mark2
If you use a XWindow session there is a file called .xsession in your home from which you can start applications.

If you are in a console window there i salways the old method in .bashrc.

If you are speaking about a Desktop manager (Gnome, Kde) there are frendly interfaces to configure which application to start at login: for Gnome there is Menu->Resorces->Preferences->Session->Startup.
Mark,
Thanks for your reply!
I'm using fluxbox. As you've mentioned for GNOME/KDE, I tried the same thing editing my $HOME/.fluxbox/startup. But went in vain!

But regarding .xsession file, I tried out this file for starting up my fluxbox to start after logging in, placing exec /usr/local/bin/fluxbox. It didn't worked, so I put the above command in .Xclients-default. BTB I'm using RHEL.

Thanks,
Sukumar
 
Old 09-21-2006, 03:44 AM   #5
wittyguysuku
LQ Newbie
 
Registered: Jul 2003
Location: India
Distribution: Red Hat Linux, SUN Solaris
Posts: 22

Original Poster
Rep: Reputation: 15
Please help me in doing:
> just after a user logs in all wm dockapps should be started. dockapps like wmxmms, wmcpuload, etc.,
> xscreensaver should also be started, so that I can lock the screen later using xscreensaver-command -lock

The login window I'm using is GNOME. And the window manager is fluxbox.
 
  


Reply

Tags
application, startup



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to turn Linux into a Specific application zbarnes Linux - Newbie 13 04-15-2005 01:42 AM
starting KDE application on specific workspace aguerra Linux - General 2 02-20-2005 06:58 PM
Guidance needed: running an application on startup. nyumedic2000 Linux - General 1 07-15-2004 04:01 PM
Run an application under a user on startup? wichmann_uwe Linux - General 1 01-23-2004 03:07 AM
User Specific Startup scripts carbonnb Linux - Newbie 2 07-02-2003 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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