I am reading the startx script, it is clear for me :
Code:
userclientrc=$HOME/.xinitrc
...
sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc
...
if [ -f $userclientrc ]; then
defaultclientargs=$userclientrc
elif [ -f $sysclientrc ]; then
defaultclientargs=$sysclientrc
fi
...
So logically, if it find your .xinitrc file, it is supposed to execute it instead of /usr/X11R6/lib/X11/xinit/xinitrc which is a link to /etc/X11/xinit/xinitrc.<window manager>
Did you add the line :
#!/bin/sh
at the top of your script and is it executable ?
For me the best to do is :
cp /etc/X11/xinit/xinitrc.kde ~/.xinitrc
And change only the last line to exec your cvs KDE