View previous topic :: View next topic |
Author |
Message |
JHuizingh Tux's lil' helper
Joined: 05 Jul 2002 Posts: 100
|
Posted: Thu May 01, 2003 4:31 am Post subject: Starting kde on startx command |
|
|
I am having problems getting kde to start when I type the startx command. I've set this up quite a few times before without problems, but now something is slipping past me. I emerged X11 and kde. For the user I wanted kde to start for I copied /etc/X11/xinit/xinitrc to .xinitrc in the home directory. Then I tried many different things within .xinitrc to get kde to start including these:
exec startkde &
exec startkde
exec /usr/kde/3.1/bin/startkde &
exec /usr/kde/3.1/bin/startkde
startkde
startkde &
None of these works. When I startx, it goes to the X server where I can see my cursor moving around, but kde never starts. Is there something I'm missing? |
|
Back to top |
|
|
Plaz Tux's lil' helper
Joined: 15 Sep 2002 Posts: 101 Location: Portland, OR
|
Posted: Thu May 01, 2003 5:38 am Post subject: |
|
|
What else, if anything, is in the .xinitrc file? Is the startkde command the first or last thing in the file. Do other commands in there work fine? If you've started an xterm, can you run startkde from it? |
|
Back to top |
|
|
JHuizingh Tux's lil' helper
Joined: 05 Jul 2002 Posts: 100
|
Posted: Thu May 01, 2003 5:49 am Post subject: |
|
|
Here's what the file I'm editing looks like. The line near the end is the one that I've been changing.
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
xinitdir=/usr/X11R6/lib/X11/xinit
sysresources=$xinitdir/.Xresources
sysmodmap=$xinitdir/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# First try ~/.xinitrc
if [ -f "$HOME/.xinitrc" ]; then
XINITRC="$HOME/.xinitrc"
exec /bin/sh "$HOME/.xinitrc"
# If not present, try the system default
elif [ -n "`/etc/X11/chooser.sh`" ]; then
exec "`/etc/X11/chooser.sh`"
# Failsafe
else
# start some nice programs
# twm &
# xclock -geometry 50x50-1+1 &
# xterm -geometry 80x50+494+51 &
# xterm -geometry 80x20+494-0 &
# exec xterm -geometry 80x66+0+0 -name login
exec startkde &
fi
I haven't tried your suggestion of getting it to start from xterm, but I'll try it when I get back to my gentoo machine and let you know. |
|
Back to top |
|
|
Plaz Tux's lil' helper
Joined: 15 Sep 2002 Posts: 101 Location: Portland, OR
|
Posted: Thu May 01, 2003 6:13 am Post subject: |
|
|
If you really copied that into your ~/.xinitrc file, then the problem is probably an infinite loop caused by the following:
Code: | # First try ~/.xinitrc
if [ -f "$HOME/.xinitrc" ]; then
XINITRC="$HOME/.xinitrc"
exec /bin/sh "$HOME/.xinitrc"
# If not present, try the system default
elif |
I.e. it starts executing your ~/.xinitrc and finds that you have a ~/.xinitrc and then starts executing your ~/.xintirc and finds that you have a ~/.xinitrc .... you get the idea.
If that's the case, try replacing that ~/.xinitrc with a one-liner that runs startkde. |
|
Back to top |
|
|
|