PDA

View Full Version : X11 Question




Caspa
Apr 25, 2003, 04:00 AM
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



orangefoodie
Apr 25, 2003, 09:08 AM
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.

Caspa
Apr 25, 2003, 09:26 AM
Originally posted by orangefoodie
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.

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?