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 - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2004, 08:57 PM   #1
crumb
Member
 
Registered: Jul 2003
Location: San Diego, CA
Distribution: what's a loonix??
Posts: 60

Rep: Reputation: 15
Making apps startup with X


I've been using Slackware for the past few months and everything is running very smoothly. But now since I'm making my groove spot in it, I'd like to make some apps startup when I start X, specifically xchat, aterm, and gkrellm.

I tried the google`ing it, but I couldn't find the answer.

Any help would be much appreciated.
 
Old 10-20-2004, 10:10 PM   #2
TomaCzar
Member
 
Registered: Dec 2003
Location: Roc City (Rochester-NY)
Distribution: Slacker 4 Life
Posts: 125

Rep: Reputation: 15
Smile

crumb,

I'm not certain but I've heard that editing one of two files will auto start applications once X is started.

.xinitrc -- edit this file if you boot to the command line and use startx

.xsession -- edit this file if you boot to a graphical login.

Hope this helps.
 
Old 10-20-2004, 10:25 PM   #3
crumb
Member
 
Registered: Jul 2003
Location: San Diego, CA
Distribution: what's a loonix??
Posts: 60

Original Poster
Rep: Reputation: 15
Well, I found .xinitrc in my home dir., and I tried entering the following lines at the end of the document:

exec /usr/local/bin/xchat

exec /usr/bin/gkrellm

exec /usr/local/bin/aterm

I shut-down X and started it again, but none of the programs that I added in .xinitrc seem to start.
What did I do wrong?
 
Old 10-20-2004, 10:39 PM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Put a space and an & at the end of each command.
Code:
exec /usr/local/bin/xchat &
 
exec /usr/bin/gkrellm &

exec /usr/local/bin/aterm &
But don't put one after the window manager!!! And the window manager should be the last line.

Last edited by darthtux; 10-20-2004 at 10:41 PM.
 
Old 10-20-2004, 11:03 PM   #5
crumb
Member
 
Registered: Jul 2003
Location: San Diego, CA
Distribution: what's a loonix??
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks a lot, darthtux.
It's working just as I'd like it to.
 
  


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
loading apps on startup pukington Linux - Newbie 4 01-19-2006 12:35 AM
startup apps with fluxbox zba78 Slackware 4 01-24-2005 11:16 AM
KDE startup apps IBall Linux - General 2 01-14-2004 03:27 AM
GNOME startup apps ciscohead Linux - Newbie 2 03-18-2003 04:55 PM
Making apps available for other users. Dead_Goon Slackware 2 03-08-2003 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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