I'm porting GIMP to OS/2 and IRIX and have made some simple unit test programs for GIMP. These test programs are useful for porting and debugging. I want to create a new directory called unittest. ex: gimp/app/unittest I have write access. :) The programs will work for alll OS'es. OK ? Here is one example program showing environment effects on rc files. Program is called gimppath.c #include "unittest.h" #include "globals.c" void show_personal(const char *filename) { char *full_filename = gimp_personal_rc_file(filename); g_print ("%-50s = gimp_personal_rc_file(\"%s\");\n", full_filename, filename); } void show_personal_files(void) { show_personal("devicerc"); show_personal("ideas"); show_personal("parasiterc"); show_personal("gimprc"); show_personal("unitrc"); show_personal("menurc"); show_personal("pluginrc"); show_personal("sessionrc"); } void show_gimp_dirs(void) { g_print ( "%s %s\n", _("GIMP version"), GIMP_VERSION); g_print ("%-50s = g_get_home_dir();\n",g_get_home_dir ()); g_print ("%-50s = g_getenv(\"GIMP_DIRECTORY\");\n",g_getenv ("GIMP_DIRECTORY")); g_print ("%-50s = g_getenv(\"GIMP_DATADIR\");\n",g_getenv ("GIMP_DATADIR")); g_print ("%-50s = gimp_directory();\n",gimp_directory()); g_print ("%-50s = gimp_data_directory();\n",gimp_data_directory()); g_print ("%-50s = gimp_gtkrc();\n",gimp_gtkrc()); } int main (int argc, char **argv) { show_gimp_dirs(); show_personal_files(); } *********************************************************** * Asbjørn Pettersen Phone work: +47 77 66 08 91 * * Kongsberg Spacetec a.s Phone home: +47 77674022 * * Telefax: +47 77 65 58 59 * * Prestvannveien 38 www:http://www.spacetec.no * * N-9005 Tromsoe, Norway email:ape@xxxxxxxxxxx * ***********************************************************