The base directory is where all Unibar products look for any files without a full pathname. A "full pathname" is a file name beginning with the "/" character on UNIX/Linux, or "\" or "[drive]:\" on DOS or Window systems.
The base directory is established once per execution, by finding “unibar.key”. Once the base directory is established, every file is expected to exist relative to the base directory.
1. Check present working directory
2. Check the “UNIBAR” environment string, if it is set
3. Check “/unibar” on UNIX/Linux, or “unibar” on DOS/Window systems
4. Check the explicit path on argv[0] (the program name), if there is one*
5. Check Operating System's search path
* - We determine if there is a search path on argv[0] by scanning the program name backwards (from right to left) and finding a "/" (on UNIX/Linux) or "/" (on DOS/Windows).
Setting the Environment String, UNIX/LINUX system only:
1. Type at the command line: UNIBAR={unibar directory} (the directory where you installed our product)
2. Type at the command line: export UNIBAR
The command above can be inserted into a login script so they are automatically executed whenever the user logs on.
Instructions for Windows Systems (NT/2000/XP)
1. Go to Control Panel>System
2. Select the Environment tab
3. Select System Variable by hitting ALT-V
4. Select the Variable text box
5. Type: UNIBAR
6. Select the Value text box
7. Type: C:\{unibar directory} (the directory where you installed our product)
8. Select the Set button
9. Select the OK button