Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
Hello, I have a pretty simple shell script that I threw together. Its an if then type of script to check for a file in a users home directory. So what Im wondering is how to have that script run everytime a user logs into KDE.
This is on SUSE Enterprise Desktop 10. I have put the script in ~/.kde/Autostart and runs perfectly as expected. However, this is a multi-user system (couple hundred users). And linking /bin/program.sh to everyones ~/Autostart is not really an option.
Ive read similar threads about putting it in /etc/rc.... But Im not really looking for it to start on system startup, just KDE login. So My question is, where would I put this script to make this happen globally?
Thanks in advance for any help!!
Maybe you could put that in startkde or whatever kdm/gdm calls. Sounds a little unclean, I agree, but might work. What would be the problem with symlinking or even copying the script to ~/.kde/Autostart?
Last edited by General Failure; 03-26-2007 at 04:00 PM.
Well, like I said, putting it in ~/.kde/Autostart works great when I did it for myself. However, how would I do that for everyone when there is over a couple hundred users?
On the other post, I think your referring to /opt/kde3/share/autostart and I did try putting it in there, but since users have already logged in before, it doesn't pull from there any more correct?
Thanks for the replies! Any more ideas would greatly be appreciated.
To have the file in all user home dirs, do the following in /home:
for i in `ls` ; do cp /bin/scriptname $i/.kde/Autostart ; done
This is a rather simple example that should work flawlessly if there are only directories in /home. You could substitute cp with ln -s if you wanted to symlink rathe rthan copy.
Last edited by General Failure; 03-27-2007 at 01:07 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.