LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2003, 09:36 PM   #1
vidigiani
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
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.
 
Old 08-10-2003, 10:08 AM   #2
vidigiani
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
After looking at some other example .xsession files it looks like you are normally supposed to start the X window manager in your .xsession (because you're appearantly overriding some other file). Anyway, I tried putting KDM here but still no luck. It says KDM wants to be run by root. Also I think KDM is run as a daemon. Anyone know what I should be putting here?
 
Old 08-10-2003, 10:24 AM   #3
vidigiani
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
OK got it working now. Figured I would post the solution in case anyone else runs into this problem. In your .xsession file you have to start your desktop environment, so at the end of the file I appended "exec startkde" and it works fine now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC$ up2date difficulty pddm Fedora 11 10-11-2005 03:35 PM
Difficulty configuring X mjordan2nd Linux - Software 4 08-09-2005 09:23 PM
difficulty with 3d gaming deathsythe210 Linux - General 4 10-24-2004 08:15 AM
Sound difficulty ruzvay Linux - Hardware 0 06-01-2004 04:26 AM
Linux Difficulty????? schigara General 24 07-11-2003 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration