I need to start MATLAB with the parameters “env MESA_LOADER_DRIVER_OVERRIDE=i965”. Else I can’t use the hardware opengl functionality. I have already inserted this parameter in the .desktop file, but I would also like to change that if I type “matlab” in the terminal, that it always uses this override. I think that I probably can edit something in .xinitrc or .bashrc, but I am not that familiar with it yet.
Would something like
if [ "matlab" ]; then echo env MESA_LOADER_DRIVER_OVERRIDE=i965 matlab done