## Environment Variables

On startup and during different operations, mrViewer reads several environment variables that allow you to customize its operation. Here's a list of them:

Variable | Explanation | Default Value
--- | --- | ---
CTL_MODULE_PATH | A string of colon (Unix) or semicolon (Windows) separated paths that mrViewer will use to find .ctl scripts. | If unset, mrViewer's ctl directory
MRV_ODT_CTL_DISPLAY_TRANSFORM | The CTL script used to transform images from CIExy space for display on your screen | transform_display_video
MRV_ODT_ICC_PROFILE | The ICC profile attached to the monitor to simulate the output media. | None.
MRV_ODT_CTL_DISPLAY_CHROMATICITIES | Chromaticities of your display | Rec. ITU-R BT.709 chromaticities
MRV_ODT_CTL_DISPLAY_WHITE_LUMINANCE | White Luminance of your display | 120 candelas per square meter
MRV_ODT_CTL_DISPLAY_SURROUND_LUMINANCE | Luminance of the surrounding environment | 12 candelas per square meter
MRV_CTL_RT_8bit | A default CTL script used to transform 8-bit images from RGB to CIExy space | None.
MRV_CTL_RT_16bit | A default CTL script used to transform 16-bit images from RGB to CIExy space | None.
MRV_CTL_RT_32bit | A default CTL script used to transform 32-bit images from RGB to CIExy space | None.
MRV_CTL_RT_float | A default CTL script used to transform float and half float images from RGB to CIExy space | transform_RRT
MRV_ICC_RT_8bit | A default ICC profile used to transform 8-bit images from RGB to CIExy space | None.
MRV_ICC_RT_16bit | A default ICC profile used to transform 16-bit images from RGB to CIExy space | None.
MRV_ICC_RT_32bit | A default ICC profile used to transform 32-bit images from RGB to CIExy space | None.
MRV_ICC_RT_float | A default ICC profile used to transform float and half float images from RGB to CIExy space | None.
MRV_HOST | Machine where mrViewer's database resides | localhost
MRV_PORT | TCP/IP Port override to use to connect to database | Uses default for database type
MRV_USER | User used to login to mrViewer's database | mrviewer
MRV_PASSWORD | Password used to login to mrViewer's database | mrviewer
MRV_DATABASE | Name of mrViewer's database | assets2d_production
SHOW | If set, any image viewed will be stored in the database as belonging to that show. | Undefined
SEQ | If set, any image viewed will be stored in the database as belonging to that sequence. | Undefined
SHOT | If set, any image viewed will be stored in the database as belonging to that shot. | Undefined
ICC_PROFILES | Directory where ICC and ICM profiles reside | %WINDIR%/SYSTEM32/spool/drivers/color on Windows and /usr/share/color/icc on Unix
HOME | Home directory for user where mrViewer's preferences will be stored | $HOME on Unix and %HOMEDIR% on Windows
MRV_SHADER_PATH | Directory where mrViewer's hardware shaders reside. | Undefined, mrViewer uses a built-in shader.