can't close xterm window in leopard!
can't close xterm window in leopard!
- Subject: can't close xterm window in leopard!
- From: "Patrick Collins" <email@hidden>
- Date: Sat, 12 Jan 2008 12:00:49 -0800
I am currently running X11 2.1.1 and have a script which runs the
following command:
/usr/X11/bin/xterm -e login -fp <my user name> &
Ever since I upgraded to Leopard, when this script is run and an xterm
window opens, I cannot close it! Clicking the window's close button
does absolutely nothing... Yet if I get rid of the -fp then I can
close the window-- but that requires me to enter my password with each
window.. Anyone have any ideas?
This is the script in it's entirety-- if any one has any suggestions
or sees something in this that perhaps is obsolete/deprecated since
Leopard, that would be great.
Patrick J. Collins
http://collinatorstudios.com
#!/bin/sh
# If X11 isn't running, start the -a app called X11 (anywhere).
if [ -z "`ps ax | grep X11.app | grep -v grep`" ]; then
open -a X11
else
osascript -l AppleScript -e 'tell application "X11" to activate'
fi
# Set the ONE value we need for X11 apps to work right.
if [ -z "$DISPLAY" ]; then
export DISPLAY=:0.0
fi
# pick up Mac OS X's System Preferences here - set in the International panel
MY_LANG=`defaults read .GlobalPreferences "AppleLanguages" | tr -d
'\012' | sed 's/(//' | sed 's/ *//' | awk -F "," '{ print $1 }'`
case "$MY_LANG" in
en)
LANGUAGE=en_US
;;
\"en-GB\")
LANGUAGE=en_GB
;;
pl)
LANGUAGE=pl_PL.ISO8859-2
;;
esac
export LANG=$LANGUAGE
export LC_CTYPE=en_US.UTF-8
## this is application specific:
#export PATH=$PATH:/usr/X11R6/bin
if [ -z "`ps ax | grep -e 'xterm -e login -fp patrick' | grep -v grep`" ]; then
/usr/X11/bin/xterm -e login -fp patrick &
fi
exit 0
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden