RE: X11 Terminal at Startup
RE: X11 Terminal at Startup
- Subject: RE: X11 Terminal at Startup
- From: "Mark D. Wagner, M.Ed." <email@hidden>
- Date: Tue, 4 Feb 2003 18:06:04 -0800
This .xinitrc file is modified from the sample given at
/etc/x11/xinit/xinitrc and now accomplishes everything I was looking for
(so thanks to all who responded)...
This launches X11 without an xterm, AND has the user-friendly default
x11 aqua-like interface (red, yellow, green buttons, genie effect, click
and drag.) Following the text of the file I've also included
instructions for modifying the openoffice.org Application.scpt to launch
X11 by default instead of XDarwin. This might be useful to anyone
wanting to use openoffice as an inexpensive alternative to ms office v.x
for endusers.
Contents of the .xinitrc file:
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld 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 some nice programs
quartz-wm &
NOTE: I removed some other 'nice programs' that the original file
suggested. I don't miss them. You might want to add them back in.
The applescript changes:
Right click (ctrl+click)the openoffice.org application to see package
contents. Open Contents. Open Resources. Open Scripts. Open the script.
Select X11 from menu of options, or browse to find it. This will have
already changed the script. (For better performance on launch, scan the
file until you see 'launch application "X11"' followed by 'Delay 30' - I
removed the 'Delay 30' line and openoffice boots much more quickly...
but since I don't know the purpose of the delay to begin with this might
be risky.) Now save this script elsewhere, then save over the original
(of course make a backup before doing any of this.) Try clicking on the
OpenOffice.org application... if you've done all of this, it should
launch x11 quickly and without an xterm, then launch openoffice
relatively fast and with an aqua-like interface. Time to put the
openoffice.org icon in the doc and try it out on your end users. :)
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.