LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-04-2003, 03:36 PM   #1
bikergirl
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Rep: Reputation: 0
start an app upon next login


How do I set up an application to run the next time I login, preferably after my desktop has loaded? I'd like to be able to do this from a shell script. I'm hoping that there is some file that I can append a call to my application to. I am hoping that there is a generic way to do this, regardless of the desktop type.

Thanks.
 
Old 06-04-2003, 03:41 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
to run the next time?? that's a pretty odd thing to want really... do you mean *every* time you log in? desktop environments like kde and gnome can do it in their own little way, but generally you can create a text file called .xsession in your home directory the contents of which is executed each time you load X.
 
Old 06-04-2003, 03:42 PM   #3
jstu
Member
 
Registered: Jan 2002
Distribution: slackware
Posts: 193

Rep: Reputation: 30
Depends on what desktop your using if gnome there is a .gtkrc file in your home directory and for kde there is a .kderc file. There are other ways to do it also but I cant remember.
 
Old 06-04-2003, 03:44 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
You could do it with xterm for example using:
xterm -display 127.0.0.1:0

Not all apps will accept a display argument but you can export the display variable instead.
 
Old 06-04-2003, 04:37 PM   #5
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 827

Rep: Reputation: 30
you _could_ just add any program to /etc/rc.local and it will start up when the system starts up.
 
Old 06-04-2003, 04:40 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally posted by hackers_
you _could_ just add any program to /etc/rc.local and it will start up when the system starts up.
not if it's an X app
 
Old 06-06-2003, 02:37 PM   #7
bikergirl
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you for the responses.

I found a good description of the X startup sequence and how to customize it out on www.mandrakeuser.org/docs/xwin/xstart.html. I was able to modify /etc/X11/xinit/Xclients to start up my app upon login, regardless of the desktop type. Creating/editing $HOME/.xclients works too.

Again, thank you for taking the time to respond to my question.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Running an app on Blackbox login? JustinCoyan Slackware 15 06-29-2005 11:55 AM
How to start associated app in KDE redss Linux - Software 2 03-02-2005 02:15 AM
start an app without virtual terminal peok Linux - Software 5 05-03-2004 10:55 AM
automatic slit app start-blackbox -login killer_bunny Linux - Software 1 12-18-2003 05:29 PM
Start an X app Iconified podollb Linux - Software 2 10-14-2003 06:13 PM

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

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