OpenWindows Advanced User's Guide

1.5.1 The OPENWINHOME Environment Variable

If you are currently running a version of the OpenWindows software earlier than Version 3.3, you may have set up your system to use the OPENWINHOME environment variable. It is no longer recommended that users set the OPENWINHOME environment variable, either by-hand or from a start-up file.

When you run the openwin command it automatically sets the OPENWINHOME environment variable to /usr/openwin; therefore, you do not need to do it.

If you have set the OPENWINHOME environment variable in either the .profile or .cshrc file in your home directory, comment out the line or delete it altogether before running OpenWindows Version 3.3, or a later version.

To remove, or comment out, the OPENWINHOME environment variable in the .profile or .cshrc file:

  1. Open the .profile or .cshrc file using a text editor such as vi.

  2. Type a pound sign (#) before the variable, as shown below, or delete the line entirely.

    If you are working in the .profile file, do Step 1; if you are working in the .cshrc file, do Step 2.

    1. In the .profile file:

      #OPENWINHOME=/usr/openwin
      

    2. In the .cshrc file:

      #setenv OPENWINHOME /usr/openwin
      

  3. Save and quit the file.

  4. Unset the OPENWINHOME environment variable (or log out and log back in).

    If you are running the Bourne or Korn shell, do Step 1. If you are running the C shell, do Step 2.

    1. In the Bourne or Korn shell, type:

      $ unset OPENWINHOME
      

    2. In the C shell, type:

      example% unsetenv OPENWINHOME
      

    Once you have unset the environment variable you are ready to run the OpenWindows software, as described in "1.6.1 Displaying the OpenWindows Software", in this chapter.