ohmtech-rdi / eurorack-blocks

Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust
Other
309 stars 21 forks source link

Fix max path use user shell #568

Closed ohmtech-rdi closed 1 year ago

ohmtech-rdi commented 1 year ago

This PR fixes an issue where erbb is not executed on Max like it is on the terminal.

This is because Max rewrites the PATH variable with its own, dropping on the way some of the important configuration we have. Typically, a specific install of Python might not be seen, and another might be loaded. If the versions differs then it will fail to load the cffi_backend, as we only install the one for the version of Python that was used during erbb setup.

For this we launch the user default shell as a login shell, so that their configuration is loaded before we pass this environment to the erbb script.