cleaning up usage of TMP variable to always get it from environment class.
[feisty_meow.git] / nucleus / library / configuration / application_configuration.cpp
index 16a1bea33d42dfd8a4c7ce2bf184d15efbb45388..601164e429459afac92a48db7c2c17bc3c379ec9 100644 (file)
@@ -105,7 +105,7 @@ printf("got an app name before chewing: %s\n", __check_once_app_path.s());
 printf("no dir part found, app name after chewing: %s\n", __check_once_app_path.s());
 
   // there was no directory component, so we'll try to guess one.
-  astring temp_filename(environment::get("TMP")
+  astring temp_filename(environment::TMP()
       + a_sprintf("/zz_cmdfind.%d", chaos().inclusive(0, 999999999)));
   system((astring("which ") + __check_once_app_path + " >" + temp_filename).s());
   FILE *which_file = fopen(temp_filename.s(), "r");
@@ -191,7 +191,7 @@ astring application_configuration::query_for_process_info()
     fclose(output); \
     unlink(tmpfile.s()); \
   } \
-  astring home_dir = env_string("HOME"); \
+  astring home_dir = environment::get("HOME"); \
   to_return = home_dir + "/failed_to_determine.exe"; \
 }