vim-matlab icon indicating copy to clipboard operation
vim-matlab copied to clipboard

How to start MATLAB with an environment variable override?

Open jclsn opened this issue 5 years ago • 2 comments

I need to start MATLAB with "env MESA_LOADER_DRIVER_OVERRIDE=i965 matlab" to get hardware opengl rendering to work. I have tried to insert this into the python script to start the server, but it throws an error. I have no experience with python. How can I achieve this?

jclsn avatar Sep 06 '20 08:09 jclsn

This is probably a bit late, but a quick and easy way is you can edit scripts/vim-matlab.py and add the following line

os.environ["MESA_LOADER_DRIVER_OVERRIDE'] = "i965"

in launch_process(). Worked for me.

iodim avatar Feb 02 '21 08:02 iodim

Thank you, but I decided not to use the Matlab plugin. There are just too many things that are not working. It also looks abandoned. Matlab-screen is more recent but also looks abandoned unfortunately.

jclsn avatar Feb 02 '21 08:02 jclsn