Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Twm [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Sun Sep 02, 2007 7:01 pm    Post subject: Twm [SOLVED] Reply with quote

Hello everyone,

I know that after you install some version of KDE, you put:

Code:

exec startkde


in your ~/.xinitrc file. What I was wondering, though, is before you have a desktop environment installed, how does startx know to use TWM? I looked in .xinitrc expecting to see something along the lines of exec twm, but there's nothing in the file at all. However, after installing KDE, I wanted to see if I could get back to just using TWM (not that it's worth much, but I wanted to know if I could figure it out), and I couldn't.

Any ideas?

--Zach
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---


Last edited by NathanZachary on Mon Sep 03, 2007 4:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Sun Sep 02, 2007 7:06 pm    Post subject: Reply with quote

If you don't have a ~/.xinitrc, startx falls back to the system xinitrc, which on my machine is /etc/X11/xinit/xinitrc.
_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sun Sep 02, 2007 7:30 pm    Post subject: Reply with quote

In startx you have:

Code:

userclientrc=$HOME/.xinitrc
sysclientrc=/etc/X11/xinit/xinitrc


And then:

Code:

if [ -f $userclientrc ]; then
    defaultclientargs=$userclientrc
elif [ -f $sysclientrc ]; then
    defaultclientargs=$sysclientrc


So, if no ~/.xinitrc is found, then you use $sysclientrc, which is /etc/X11/xinit/xinitrc. Just look at its contents and you will know the rest of the story.
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Mon Sep 03, 2007 4:04 pm    Post subject: Reply with quote

Thanks a lot; it makes sense now looking at the system .xinitrc file. :)
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum