|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
On Dec 16, 2007, at 11:59, John Koren wrote:
Here is a very simple example:
# *** get POSIX path ***
thepath=`/usr/bin/osascript /Users/john/sw/src/Xterm/getPath.app 2>/dev/null | sed 's|[^/]*$||'`
#cd "$thepath"; /opt/local/bin/rxvt -tcw -display :0 &
cd "$thepath"; /opt/local/bin/rxvt -tcw &
# *** bring X11 to the front ***
/usr/bin/osascript -e 'tell application "/Applications/Utilities/ X11.app" to activate'
This script opens rxvt in the directory which is currently being examined by the Finder. I bundle it using Platypus and place the bundle's icon in the Finder toolbar.
Try this instead:
The original script had '-display :0' in the rxvt call. The script works correctly when I leave '-display :0' out. With '-display :0' in it also works well except during the first launch of X11 it pops up two windows, the one that I selected and the xterm from the launchd.
When I asked if the launcher could be made a bit smarter (or less finicky) is that it would not launch the extra xterm in the situation when the application that triggered it (in this case rxvt - display :0) has display set to the 'local' screen (:0, local :0, my_computer:0). In other words it would work as if the display variable was not set.
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list (email@hidden) This email sent to email@hidden
|>Re: 2.1.1 and xterm (From: "John Koren" <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.