|
|
open-x11
Some good solutions above, but instead of fiddling with DISPLAY and launching X11 manually, just use open-x11
$ which open-x11 /usr/bin/open-x11There's no man page for it, but you can get some usage info by giving it garbage on the command line: $ open-X11 -hfgjhds /usr/bin/open-X11: line 1: type: -h: invalid option type: usage: type [-afptP] name [name ...] : unknown application: -hfgjhdsIt makes sure that X11.app is running, and then launches the given command. eg. $ open-x11 xclock
open-x11
If the executable isn't in the /usr/X11R6/bin directory, you have to specify the full path:
open-x11
It also apparently starts as a subprocess, so if your X11 application needs environment variables set in order to work, this won't do it, and you are back to the above type shell script.
open-x11
To my surprise, none of the above methods will work with gvim (the X11 version, not the Carbon port). The only method I found that will work is to create a .command file containing the following shell script:
Then, of course, you'd make the .command file executable and paste whatever custom icon you'd like. I did several .command files for pan, sol, gimp, etc., and in those the line "open-x11 /full/path/to/app" sufficed.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|