daeyun / vim-matlab

Neovim plugin for MATLAB
Mozilla Public License 2.0
105 stars 19 forks source link

How to start MATLAB with an environment variable override? #34

Open jclsn opened 3 years ago

jclsn commented 3 years ago

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?

iodim commented 3 years ago

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.

jclsn commented 3 years ago

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.