KDM has its own startup script called Xsetup.
...
How to Run Scripts
- Locate the Xsetup file. It may vary depending on your distribution. ...
- Edit the file as root. ...
- Enter the commands you want to execute (note: They will be run as root before the login dialog appears) ...
- Click “Save” and close your text editor.