LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   .xsession file causes login crash? (https://www.linuxquestions.org/questions/suse-opensuse-60/xsession-file-causes-login-crash-300373/)

ran404 03-11-2005 07:35 AM

.xsession file causes login crash?
 
i'm trying to use the 'xmodmap' command inside the '.xsession' file to map my mouse buttons but for some reason x crashes right after login.

i got an error message saying "Your session only lasted less than 10 seconds ......"
clicking on 'vew details' shows no errors at all. this is strange because i never had this problem on other distributions.

the problem goes away if rename the file. however even an empty .xsession file causes the crash! .xinitrc does exactly the same thing!

anyone has any idea on how to fix this? im using gdm btw.
my .xsession file has a single line:
xmodmap -e "pointer = 1 2 3 6 7 4 5"

thanks!

TomaCzar 03-13-2005 12:55 PM

I'm pretty sure the last line in the .xsession is supposed to load the window manager. My last line is:

exec /usr/X11R6/bin/fluxbox

which brings up Fluxbox (obviously). I don't know what your wm is so I couldn't give you the exec line to use.

My .xsession is based off of /etc/X11/xdm/Xsession so you might wish to try that (removing all of the conditional stuff that does not apply to your box). Good luck.


All times are GMT -5. The time now is 05:12 AM.