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


Click here to return to the 'Easier use of X11 in bash' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easier use of X11 in bash
Authored by: denken on Oct 30, '03 06:29:25PM

see my earlier post and virga42's reply... there is a bit of syntax problem with the original post. i also gave a hint on setting up your .xinitrc file. on my panther system, this works:

# if we're NOT ssh'd in
if [ ! ${SSH_TTY} ]; then
# make sure X is running
if [ "`ps -x | awk '{print $5}' | grep X11`" = "" ]; then
open /Applications/Utilities/X11.app
# then refocus Terminal.app
osascript -e 'tell application "Terminal" to activate'
fi
# if DISPLAY isn't set
if [ x${DISPLAY} = x ]; then
export DISPLAY=:0
fi
fi

# Turn on pretty colors
export CLICOLOR=1



[ Reply to This | # ]
Easier use of X11 in bash
Authored by: 0ri0n on Oct 30, '03 06:56:11PM

should have tried your suggestion: it works!

Thanks!



[ Reply to This | # ]
Easier use of X11 in bash
Authored by: anodyne on Nov 04, '03 01:42:36PM

Well, I tried the suggestions and got this

Welcome to Darwin!
byu097411wks:~ david$ gimp
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Any suggestions



[ Reply to This | # ]