Changeset 1885
- Timestamp:
- Fri Jan 20 22:34:43 2006
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
-
trunk/livesupport/src/products/gLiveSupport/src/OptionsContainer.cxx
r1884 r1885 194 194 if (configFileName) { 195 195 std::ofstream file(configFileName->c_str()); 196 optionsDocument.write_to_stream_formatted(file, "utf-8"); 196 if (file.good()) { 197 optionsDocument.write_to_stream_formatted(file, "utf-8"); 198 changed = false; 199 } 197 200 file.close(); 198 changed = false;199 201 } 200 202 } -
trunk/livesupport/src/products/gLiveSupport/src/GLiveSupport.cxx
r1884 r1885 86 86 * The name of the configuration file for this class 87 87 *----------------------------------------------------------------------------*/ 88 const std::string configFileDirStr = "/ .livesupport/";88 const std::string configFileDirStr = "/dot-livesupport/"; 88 88 89 89 /*------------------------------------------------------------------------------ -
trunk/livesupport/src/products/gLiveSupport/src/OptionsContainer.h
r1884 r1885 168 168 * 169 169 * This writes the options in XML format to the file specified in the 170 * constructor, under $HOME/.livesupport. If the directory does not 171 * exist, it is created. 170 * constructor. The directory must already exist (it's OK if the file 171 * does not), otherwise nothing is written. 172 172 */ 173 173 void