LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Making apps startup with X (https://www.linuxquestions.org/questions/linux-newbie-8/making-apps-startup-with-x-245319/)

crumb 10-20-2004 08:57 PM

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.

TomaCzar 10-20-2004 10:10 PM

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.

crumb 10-20-2004 10:25 PM

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?

darthtux 10-20-2004 10:39 PM

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.

crumb 10-20-2004 11:03 PM

Thanks a lot, darthtux.
It's working just as I'd like it to. :)


All times are GMT -5. The time now is 02:08 AM.