LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-04-2004, 07:43 PM   #1
CodeWarrior
Member
 
Registered: Mar 2003
Location: US
Distribution: Kubuntu 6.06
Posts: 173

Rep: Reputation: 30
How to start programs when KDE starts


This seems like a common question, but I couldn't find anything on this board. I want to start a clock, gaim and other applications when KDE starts. I read that I had to edit the .xinitrc script, but when I edit it and do a startx, nothing different happens.

The last few lines of my .xinitrc file reads...

# Start the window manager:
startkde
# Starting a clock
oclock -fg red -bg blue &
# Opening a terminal
xterm -geometry 80x50+494+51

What am I doing wrong?
 
Old 02-04-2004, 07:48 PM   #2
Jose Muņiz
Member
 
Registered: Jul 2003
Location: Mexico City
Distribution: Slackware 9.1, SuSE 9.1
Posts: 248

Rep: Reputation: 30
There's a directory called:

~/.kde/Autostart

Place a link there to all those applications you want to load when KDE starts and you're done =)
 
Old 02-04-2004, 08:04 PM   #3
CodeWarrior
Member
 
Registered: Mar 2003
Location: US
Distribution: Kubuntu 6.06
Posts: 173

Original Poster
Rep: Reputation: 30
ok, great I will try that. But what about the .xinitrc file. Isn't that a better way to do it so that it isn't specific to any one window manager or desktop?
 
Old 02-04-2004, 08:49 PM   #4
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
It would depend on the application, I suppose. I've got some dockapps loading with Fluxbox that are just an annoyance if I load them in KDE, so I keep them in a fluxbox startup script instead.

To answer your initial question, place the applications in xinitrc before startkde, and add a & after them.
Add if that still doesn't work, try
exec kde

Last edited by mikshaw; 02-04-2004 at 08:53 PM.
 
Old 02-08-2004, 08:17 PM   #5
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
Does that mean any file placed in ~/.kde/Autostart/ will be executed when KDE starts. Well, aslong as the file is executable?
 
Old 02-09-2004, 04:54 PM   #6
delta9
Member
 
Registered: Dec 2003
Distribution: Gentoo
Posts: 66

Rep: Reputation: 15
Quote:
Originally posted by Kristijan
Does that mean any file placed in ~/.kde/Autostart/ will be executed when KDE starts. Well, aslong as the file is executable?
yes
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE starts on :0.0 and :0.1, to start only on :0.0 ..? RedDwarf Linux - Software 1 02-13-2005 12:36 AM
Start programs when Xwindows starts? ksun Linux - Newbie 3 10-13-2003 04:40 PM
Run programs automatically when KDE starts koyi Linux - General 2 09-01-2003 06:34 AM
How to change what programs kde starts up? MadCactus Linux - Software 5 07-28-2003 04:11 PM
Programs start when KDE starts face_master Linux - Software 1 07-20-2003 01:36 AM


All times are GMT -5. The time now is 07:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration