+char File::cinexe_path[BCTEXTLEN];
+char File::cinpkg_path[BCTEXTLEN];
+char File::cindat_path[BCTEXTLEN];
+char File::cinlib_path[BCTEXTLEN];
+char File::cincfg_path[BCTEXTLEN];
+char File::cinplg_path[BCTEXTLEN];
+char File::cinlad_path[BCTEXTLEN];
+char File::cinlcl_path[BCTEXTLEN];
+
+void File::init_cin_path()
+{
+ char env_path[BCTEXTLEN], env_pkg[BCTEXTLEN];
+// these values are advertised for forks/shell scripts
+ get_exe_path(env_path, env_pkg);
+ snprintf(cinexe_path, sizeof(cinexe_path), "CIN_PATH=%s", env_path);
+ putenv(cinexe_path);
+ snprintf(cinpkg_path, sizeof(cinpkg_path), "CIN_PKG=%s", env_pkg);
+ putenv(cinpkg_path);
+
+ getenv_path(env_path, CINDAT_DIR);
+ snprintf(cindat_path, sizeof(cindat_path), "CIN_DAT=%s", env_path);
+ putenv(cindat_path);
+
+ getenv_path(env_path, CINLIB_DIR);
+ snprintf(cinlib_path, sizeof(cinlib_path), "CIN_LIB=%s", env_path);
+ putenv(cinlib_path);
+
+ getenv_path(env_path, CONFIG_DIR);
+ snprintf(cincfg_path, sizeof(cincfg_path), "CIN_CONFIG=%s", env_path);
+ putenv(cincfg_path);
+
+ getenv_path(env_path, PLUGIN_DIR);
+ snprintf(cinplg_path, sizeof(cinplg_path), "CIN_PLUGIN=%s", env_path);
+ putenv(cinplg_path);
+
+ getenv_path(env_path, LADSPA_DIR);
+ snprintf(cinlad_path, sizeof(cinlad_path), "CIN_LADSPA=%s", env_path);
+ putenv(cinlad_path);
+
+ getenv_path(env_path, LOCALE_DIR);
+ snprintf(cinlcl_path, sizeof(cinlcl_path), "CIN_LOCALE=%s", env_path);
+ putenv(cinlcl_path);
+}
+
+