X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



8146 Rate this article:
No rating

What to do in case AppleScript does not inherit the system variables defined in the bash shell file

 

On Mac OS, in some cases the AppleScript (.app) does not inherit the system variables defined in the bash shell file such as the .bashrc file.

This may affect IDL/ENVI in different configurations: one example is the configuration of the IDL-Pyhton Bridge, which requires the definition of various environment variables in the .bashrc file.

 

How to identify the issue – example of the IDL-Python bridge

  • Environment variables are defined in the .bashrc file
  • The IDL Python bridge is failing when starting IDL from the .app
  • The IDL Python Bridge is working fine when starting IDL from a terminal instead of using the .app

 

How to fix the issue so Harris products can be started using the .app:

  • Open Finder and navigate to the .app file. For example, for idlde 8.7: /Applications/harris/idl87/idlde/idlde.darwin.x86_64.app
  • Right click on the .app and choose Show Package Contents
  • Locate the “init” file inside the /Contents/MacOS/ directory: this is the bash script to launch the IDL workbench
  • Open the “init” file with a text editor
  • Add the following line to this “init” file anywhere before the final  exec command: source ~/.bashrc

 

  • Save the file and try again to launch the application using the .app: it should now take into account the system variables defined in the .bashrc file

Another option is to directly define the required environment variable in the “init” file inside the /Contents/MacOS/ directory (instead of sourcing the bash shell file)

 

 

 

-------------------------------------------------------------

created by BC on 4/9/2019, reviewed by MM on 4/9/2019

Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »