X11 Question

Discussion in 'Mac Apps and Mac App Store' started by Caspa, Apr 25, 2003.

  1. Caspa macrumors member

    Joined:
    Apr 11, 2003
    Location:
    Sydney
    #1
    Just a quick question...
    Havn't tried because I havnt got my OSX system yet, but can u launch X11 apps directly from the dock? eg instead of going into term - starting x - and then opening the program can you just click an icon and it will start?

    Thanks
     
  2. orangefoodie macrumors member

    Joined:
    Jan 17, 2003
    Location:
    Entirely TOO FLAT Ann Arbor, MI
    #2
    You can, you just have to write a Scripteedoo in AppleScript, going sommit like: (presuming you have stuff done with fink and Apple X11)

    tell application "X11"
    activate
    end tell
    do shell script "export DISPLAY=:0 && source /sw/bin/init.sh && abiword"

    where the abiword can be replaced with the command name of your choice. Now, can someone answer me why the bloody hell X is so... unstable? It tends to crash a LOT.
     
  3. Caspa thread starter macrumors member

    Joined:
    Apr 11, 2003
    Location:
    Sydney
    #3
    Thanks for that, i'll have to give it a try.
    Then I presume you can put the script onto the dock and change the icon etc etc?
     

Share This Page