View previous topic :: View next topic |
Author |
Message |
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Sun Sep 02, 2007 7:01 pm Post subject: Twm [SOLVED] |
|
|
Hello everyone,
I know that after you install some version of KDE, you put:
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 |
|
|
tarpman Veteran
Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Sun Sep 02, 2007 7:06 pm Post subject: |
|
|
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 |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Sun Sep 02, 2007 7:30 pm Post subject: |
|
|
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 |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Mon Sep 03, 2007 4:04 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|