You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, October 26th 2004, 2:18am

Getting progs to run at KDE startup so instead of manually

I'm running slackware 10 and I want LISa and CUPS and a few other programs to start automatically when running KDE. I would also like KDE to autmatically start instead of having to go through the whole process of logging in, and then typing startx

Ok, so I have read several posts about adding a .desktop file to the /kde/autostart directory. In order to get the other programs to start. I wasn't quite sure how to do it, but after browsing to that location, I found several files which indicated that they were name.desktop files. So, I copied a file, then changed the "program" which it ran, and removed the options and saved, as well as renamed, and those programs still didn't start automatically after reboot.

Obviously, I'm just flailing around at learning Linux, and I dont' have all day to learn since I do run a full time IT services company. I feel like I'm reading shakespeare, and I have still spent SEVEVERAL days reading documentation.

Please help.

2

Tuesday, October 26th 2004, 7:55am

Re: Getting progs to run at KDE startup so instead of manual

Quoted

Original von jnord24

Ok, so I have read several posts about adding a .desktop file to the /kde/autostart directory. In order to get the other programs to start.
Is that really the directory you added the .desktop files to? Try ~/.kde/Autostart (uppercase "A"!) or ~/.kde/share/autostart instead (assuming ~/.kde is your KDE config directory).

See also http://wiki.kde.org/tiki-index.php?page=KDE+User+FAQ#id912756

m4ktub

Intermediate

Posts: 257

Location: Lisbon, Portugal

Occupation: Software Engineer

  • Send private message

3

Tuesday, October 26th 2004, 11:14am

Normally lisa and cups are started by the base system and not KDE because the are independent services. So you should try to make a link from your current runlevel to the lauch script in /etc/init.d.

In more detail you should look in /etc/init.d for scripts like lisa and cups. Then try to run them like "/etc/init.d/lisa start" and see if the work. Then look at /etc/initab a line like "id:2:initdefault:". In this case the number is your default runlevel. After knowing your default runlevel you could make links from /etc/rc<runlevel>.d to /etc/init.d: "ln -s /etc/init.d/lisa /etc/rc<runlevel.d/S99lisa". This will make lisa start when you boot. The S99 part is a convention saying that the script should execute when starting the service (the S) after any S<number> where <number> < 99.
For KDE normally there is a script in /etc/init.d/ kalled kdm. Use this and the computer will boot to graphical environment but not to KDE. You still have to login (now in a graphical interface) but can choose which desktop you want to use. KDE of course ;-)

NOTE: some systems don't start kdm if it is not the default display manager. You have to check slackware documentation for that if it does not work

4

Tuesday, October 26th 2004, 11:44am

Quoted

Original von m4ktub

Normally lisa and cups are started by the base system and not KDE because the are independent services. So you should try to make a link from your current runlevel to the lauch script in /etc/init.d.
Ooops, I missed that part about lisa and cups :oops:. You're right of course.

Still, what I said may apply to the "few other programs" that jnord24 would like to start.

m4ktub

Intermediate

Posts: 257

Location: Lisbon, Portugal

Occupation: Software Engineer

  • Send private message

5

Tuesday, October 26th 2004, 5:39pm

It's easy to miss non KDE related problems in this forums :-).

Anyway I've never used autostart since KDE saves the desktop session and almost everything goes back to place.