Re: matlab and x11
Re: matlab and x11
- Subject: Re: matlab and x11
- From: Kenneth Prager <email@hidden>
- Date: Wed, 22 Jan 2003 04:28:58 -0800
At 12:54 PM +0100 1/22/03, Bengt-Erik Olsson wrote:
On onsdag, jan 22, 2003, at 11:01 Europe/Stockholm, Frank Herzog wrote:
Hello,
the matlab installation routine installed OroborOSX as X11 window
server. Now when I start Matlab via the launchMATLAB app, it
automatically starts OroborOSX instead of using X11 public beta.
Does anybody know how to disable OroborOSX and tell Matlab to use
the X11 public beta?
From a terminal type: /Applications/MATLAB6p5/bin/matlab &
On my system it also works using the Matlab Launcher but OroborOSX
will give a number of error messages and after a while Matlab
launches anyway.
Bengt-Erik Olsson
And here is how to set things up so that you have a click-able icon,
courtesy of John Iversen <email@hidden>...
From: John Iversen <email@hidden>
Subject: Re: test x11.app with Matalb
Date: Wed, 08 Jan 2003 10:19:39 -0800
To convert matlab to smoothly use Apple's X11 for OS X (I originally
posted this at OroborOSX forum, but thought it worth repeating here):
Hi, this is relatively easy to do. Go in to
/Applications/MATLAB6p5/LaunchMatlab.app/Contents and you'll find a
file called 'launch_matlab.sh'. Copy this to something else for
safekeeping (e.g. 'launch_matlab.sh.oroborosx'). I then replaced the
original launch_matlab.sh with the following, which works:
--------------------------------------------
#!/bin/sh
# $Revision: 1.1 $
# Copyright 1997-2002 The MathWorks, Inc.
#modification to work with Apple's X11
# 1/7/03 John Iversen (email@hidden)
if [ "`ps xc | grep X11`" ]; then
# Bounce less if X11 for OS X is already started (starts up much
faster than oroborosx)
sleeptime=10
echo LaunchMatlab: Using previously started X11 for OS X
else
sleeptime=15
echo LaunchMatlab: Starting X11 for OS X
fi
open /Applications/X11.app
cd ../..
bin/mac/setsid bin/matlab -desktop -display :0.0 &
# Bounce to let user know MATLAB is starting up.
/bin/sleep $sleeptime
----------------------------------------
You can modify yours to match. The only important thing is adding
the line reading "open /Applications/X11.app", and commenting out
the line opening oroborosx. The rest is just to let you know what
it's doing.
--John
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.