Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Run X11 and command line apps using open UNIX
It has already been documented that in 10.3 you can simply launch command line apps and X11 apps from Finder by clicking on them. I found out that this also works for X11 apps launched using open in the Terminal. If you try to launch them from the Terminal the usual *nix way, you will simply get an error saying that X11 isn't running (unless it actually is of course), but if you use open [x11_app_name], then X11 will launch and then start your chosen application.

If for some reason you should want to open a command line application in another Terminal session, you can also do this using open. This can be useful if you're usually using a Terminal.app replacement like GLTerm or iTerm and (for some reason) want something to launch in Apple's Terminal.app instead of your current one.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[4,558 views]  

Run X11 and command line apps using open | 2 comments | Create New Account
Click here to return to the 'Run X11 and command line apps using open' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Run X11 and command line apps using open
Authored by: ar on Feb 23, '04 05:27:25PM
The tip seems to imply that X11 apps will launch the X server. Instead they get opened in Terminal.app:
$ open /opt/local/bin/ethereal
(other terminal window opens, and the following is automatically entered:)
$ /opt/local/bin/ethereal; exit

(ethereal:803): Gtk-WARNING **: cannot open display:  
logout
[Process completed]
OK so what am I missing?

[ Reply to This | # ]
Run X11 and command line apps using open
Authored by: Trezzer on Feb 25, '04 05:57:23AM

This is my output :
[Ninjakoala:~] trez% open /opt/local/bin/x64
[Ninjakoala:~] trez%

(X11 launches of course)

Maybe you aren't using Apple's X11?
Or 10.3?

---
Trezzer
- AmigaOS and OS X all the way, baby



[ Reply to This | # ]