Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: xinitrc problem



Unless things have changed the X11 server exits when the process running the .xinitrc script exits. Change these two lines

exec wmaker &
exec xterm &

wmaker &
exec xterm

and you'll be OK.  The X11 session will hang around until the xterm exits.
If it were me I do it this way.

xterm&
exec wmaker

so the session stays until I tell windowmaker to exit.

Either way the exec command is *only* on the last line in .xinitrc and there is no '&' character on the end of that line.

Remember that exec replaces the current executable (your shell in this case) with the wmaker executable so the process continues to run.

BTW the error regarding the font path is due an error in the X11 configuration by Apple. Most vendors make a similar error and it is nothing to worry about.

michael
David Robinson wrote:
Hi guys, made some changes to the file and also placed the file into the $Home directory. Using a plain text editor. Same thing is happening though the errors in the console are now different.

By the way, thanks for all the help. I really appreciate it.

Here is the file

#! sw/bin/init.sh
# $Id: xinitrc,v 1.3 2004/06/11 04:37:23 jharper Exp $

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

# quartz-wm &



# start the window manager

exec wmaker &
exec xterm &

and here is the console message

XFree86 Version 4.4.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
[DRI] screen 0 installation complete
Screen 0 added: 1680x1050 @ (0,0)
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
Quitting XDarwin...


cheers

Dave



_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden



This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >Fwd: xinitrc problem (From: David Robinson <email@hidden>)
 >Fwd: xinitrc problem (From: David Robinson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.