I need to start MATLAB with the parameters “env MESA_LOADER_DRIVER_OVERRIDE=i965”. I could edit my .desktop file and also add an alias in .bashrc. Now I need to set this environment override in a python script. I have tried
Unfortunately both throw an error. And well sure - both of them are bash commands. I probably need to set something like a .pythonrc up.