Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Starting kde on startx command
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
JHuizingh
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2002
Posts: 100

PostPosted: Thu May 01, 2003 4:31 am    Post subject: Starting kde on startx command Reply with quote

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
View user's profile Send private message
Plaz
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2002
Posts: 101
Location: Portland, OR

PostPosted: Thu May 01, 2003 5:38 am    Post subject: Reply with quote

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
View user's profile Send private message
JHuizingh
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2002
Posts: 100

PostPosted: Thu May 01, 2003 5:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Plaz
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2002
Posts: 101
Location: Portland, OR

PostPosted: Thu May 01, 2003 6:13 am    Post subject: Reply with quote

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
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