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

Wednesday, December 6th 2006, 4:13pm

How to make autostart for everyone?

I know how to run a program at KDE startup:
http://docs.kde.org/development/en/kdeba….html#id2560283

I also know that it actually creates a .desktop file in the .kde/Autostart/ directory under the user's home directory, ie, normally it is
/home/my_user/.kde/Autostart/my_program.desktop

But what to do so that every KDE user has this program autostarted at KDE startup? I mean, instead of copying this .desktop file to every user's home directory, is there a more professional way? Isn't there a shared autostart directory for every user, something "à la windows"?

Well, copying the file isn't a problem since we could always make a script. But there're two potential problems that most users should be aware of:
1. Every change to the "master" .desktop file requires copying the file n times to user's home directory. No, this isn't big deal.
2. New user can't have the program autostarted, unless the administrator remembers to copy every single file for him. This is a big deal!

Cepheus

Beginner

Posts: 8

Location: Berlin, Germany

  • Send private message

2

Tuesday, December 12th 2006, 12:09pm

The system-wide autostart folder for KDE ist /usr/share/autostart. Some .desktop-files should already be there, provided by KDE or your distro. Kicker is started from there, for example.

You could also add your .desktop-file to the template folder for new users. That is /etc/skel. Everything in this folder is copied to /home/<username> when a new user is created. At least in Fedora. I don't know if it is distro-specific.

cepheus