X11 automagic xterm

donkey

Registered
is there a way to keep xterm from starting up when i start X11? i have some applescript goodies to launch X11 apps, but when it starts up X11 it throws an xterm window up there which i then have to go close. annoying.
 
I think that you need to change your .xinitrc file, that is where the xtrem is launched. Here is mine, I will comment by the line that starts the xterm. Just comment it out (with #) or delete it.
Code:
#!/bin/sh
# $Id: xinitrc,v 1.2 2003/02/27 19:03:30 jharper Exp $

#added by kjell 10/30/03 -- setting up x11 to play ball with fink
source /sw/bin/init.sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/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 some nice programs

xterm & #launches an xterm, which you don't want.

# start the window manager

exec quartz-wm
 
Back
Top