LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   x startup .xinitrc (https://www.linuxquestions.org/questions/linux-newbie-8/x-startup-xinitrc-148306/)

Longinus 02-20-2004 12:48 AM

x startup .xinitrc
 
hi

im trying to add a few program to run at startup

i have found ~/.xinitrc

#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.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

# Start the window manager:
exec /usr/local/bin/fluxbox

exec /usr/local/bin/gkrellm

i added the last line: /usr/local/bin/gkrellm
-to start gkrellm at startup....

but for some reason this isnt working :[

if anybody has any suggestions that would be great

thanks

jkobrien 02-20-2004 04:01 AM

Your command never gets read. The exec command above (fluxbox) replaces the startx process with the process to run your window manager.

You could try moving the command to just above "exec fluxbox", drop the "exec" and put it in the background.

/usr/local/bin/gkrellm &

John


All times are GMT -5. The time now is 05:17 AM.