nrf Connect Terminal LD_LIBRARY_PATH problem

nrf Connect Terminal overwrites LD_LIBRARY_PATH. I have added SEGGER JLink path to it so nrfjprog and JLink can dynamically link to the JLink dot so files. This works on Bash and ZSH outside nrf Connect terminal. 

Please see the screenshots below from the terminal window in VSCode:

I have found below template hoping that I can somehow insert JLink library path:

"nrf-connect.terminalProfile.shell": {
"path": "/usr/bin/zsh",
"args": []
},
however I'm not sure whether LD_LIBRARY_PATH is append-able for nrf Connect Terminal. How can I fix this problem ? 
Parents
  • Right now I have set my LD_LIBRARY_PATH in .zprofile and I launch VSCode from command line in ZSH. I have tried setting it in .bash_profile and .zshrc. It seems PATH in .zprofile works fine because I set it in .zprofile and I can launch nrfjprog in nrf Connect Terminal.

    export PATH="$HOME/local/nrf-command-line-tools/bin:$HOME/local/JLink_Linux_V794e_x86_64:$PATH"
    export LD_LIBRARY_PATH="$HOME/local/JLink_Linux_V794e_x86_64:$LD_LIBRARY_PATH"

Reply
  • Right now I have set my LD_LIBRARY_PATH in .zprofile and I launch VSCode from command line in ZSH. I have tried setting it in .bash_profile and .zshrc. It seems PATH in .zprofile works fine because I set it in .zprofile and I can launch nrfjprog in nrf Connect Terminal.

    export PATH="$HOME/local/nrf-command-line-tools/bin:$HOME/local/JLink_Linux_V794e_x86_64:$PATH"
    export LD_LIBRARY_PATH="$HOME/local/JLink_Linux_V794e_x86_64:$LD_LIBRARY_PATH"

Children
Related