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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-04-2004, 07:43 PM
|
#1
|
Member
Registered: Mar 2003
Location: US
Distribution: Kubuntu 6.06
Posts: 173
Rep:
|
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?
|
|
|
02-04-2004, 07:48 PM
|
#2
|
Member
Registered: Jul 2003
Location: Mexico City
Distribution: Slackware 9.1, SuSE 9.1
Posts: 248
Rep:
|
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 =)
|
|
|
02-04-2004, 08:04 PM
|
#3
|
Member
Registered: Mar 2003
Location: US
Distribution: Kubuntu 6.06
Posts: 173
Original Poster
Rep:
|
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?
|
|
|
02-04-2004, 08:49 PM
|
#4
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
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.
|
|
|
02-08-2004, 08:17 PM
|
#5
|
Member
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394
Rep:
|
Does that mean any file placed in ~/.kde/Autostart/ will be executed when KDE starts. Well, aslong as the file is executable?
|
|
|
02-09-2004, 04:54 PM
|
#6
|
Member
Registered: Dec 2003
Distribution: Gentoo
Posts: 66
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 01:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|