kdm configuration

I’m trying to find kdm configuration files where I could add post user login script to execute.

I just cannot figure out what files are read and executed at what time.

I’m trying to load ICC profile after user login. I needs to be executed by root before starting users KDE/Gnome/… session. Loading ICC profile requires running X, so /etc/init.d would not work.

Setting s bit on a script run by user is the last resort due to obvious security implication.

Google … produced nothing useful. I would know what to do in older SuSE versions. In Ubuntu I’d put it in /etc/gdm/PostLogin/Default …

Is there any good soul around who understand this and would be willing to help me with advice please?

Thanks … Tom

I’ve read about some users modifying /etc/X11/xdm/Xsetup (at a suitable location within script). Be careful though.