All Users Startup

I’m using openSuSE 11.3 with all latest updates and using LDAP for user
authentication and would like a script to run when any user logs in.
This script must run as the user who is logging on and must run whether
this is a new user or not but I’m not sure how to achieve this. I’m
probably looking for the equivalent of the All Users Startup folder
and/or the default user profile but don’t know where to find either.

I did find some reference to /etc/skel/.xinitrc and so I renamed the
template provided, added my script and logged in however the login hang
as the script never terminates even though it works fine if I place a
link to it in ~/.kde4/Autostart. However this approach will not run the
script automatically for new users and I’d have to copy to all current users

Thanks for any suggestions

Paul

I assume you’re using KDE but which version? Also, please post your script so we have an idea of what it’s supposed to do. What, if any, messages are displayed?

Tom

Put your script in /etc/profile.d, owned by root, readable by all (644), give it the extension .sh for bash/sh login and .csh for csh/tcsh login.

Put a copy of your script in /etc/skel/.kde4/Autostart. Create this directory if needed. Everything has to be owned by root there.

  • Apply either that solution (Kde login) or the one I posted previously (shell login). Not both!
    ** that will work only for new users, if their home directory get created. You’ll have to manually copy this script in the ~/.kde4/Autostart directory of each existing user.

On 24/11/2010 07:36, tommyttt wrote:
>
> I assume you’re using KDE but which version? Also, please post your
> script so we have an idea of what it’s supposed to do. What, if any,
> messages are displayed?
>
> Tom
>
>
Sorry, yes it’s KDE 4.4.4 Release 2

I’ve since discovered that if I create /etc/skel/.kde4/Autostart and
then create a symbolic link in there to the script whenever a new user
logs in this is replicated into their home directory and works as
required. This was more important than covering those accounts which
already exist so I’m happy with that

Cheers

Paul

On 24/11/2010 08:06, please try again wrote:
>
> Paul;2256966 Wrote:
>> even though it works fine if I place a
>> link to it in ~/.kde4/Autostart. However this approach will not run the
>> script automatically for new users and I’d have to copy to all current
>> users
>>
>
> Put a copy of your script in /etc/skel/.kde4/Autostart. Create this
> directory if needed. Everything has to be owned by root there.
>
> * Apply either that solution (Kde login) or the one I posted previously
> (shell login). Not both!
> ** that will work only for new users, if their home directory get
> created. You’ll have to manually copy this script in the
> ~/.kde4/Autostart directory of each existing user.
>
>
Thanks for this. I hadn’t read your reply before discovering this for
myself (which is why my previous reply didn’t mention it) but it’s good
to have confirmation

Cheers

Paul