Difficulty with .xsession
I was reading up on the article about mice with 5 buttons. It suggests that the buttons get remaped using xmodmap. I do this and it works great. Now I'd like to do it every time I start X, so I created a file .xsession and did chmod +x on it. I added the line about xmodmap into and then run startx.
My x initially does the normal screen flicker and then dies with no error message. I checked the .xsession-errors log but there are no entries. I tried putting something else in the .xsession file "echo Hi!". Still the same behavior. Then I tried renaming .xsession to .xinitrc. Same behavior. Then I remove the .xinitrc file and startx works just fine again.
I am using KDE and KDM... don't know if that plays into this at all. I am also running Debian. I've tried the above steps with both woody and sarge. I am running X 4.3.0 with dri-trunk drivers.