From f673b58668d28a3338e0df705b992aba7076c78f Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 24 Jan 2013 14:37:55 +0000 Subject: [PATCH] don't use files starting with a '.' on Windows: it's really too much of a pain to explain to users how to 1) find them and 2) edit them PS : sorry Windows users... this means that you will loose your options next time you update. --- Common/DefaultOptions.h | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h index 530ec38040..1b16bd231f 100644 --- a/Common/DefaultOptions.h +++ b/Common/DefaultOptions.h @@ -46,7 +46,12 @@ StringXString GeneralOptions_String[] = { { F, "Display" , opt_general_display , "" , "X server to use (only for Unix versions)" }, - { F|O, "ErrorFileName" , opt_general_error_filename , ".gmsh-errors" , + { F|O, "ErrorFileName" , opt_general_error_filename , +#if defined(WIN32) + ".gmsh-errors" , +#else + "gmsh-errors" , +#endif "File into which the log is saved if a fatal error occurs" }, { F, "FileName" , opt_general_filename , "" , @@ -59,7 +64,12 @@ StringXString GeneralOptions_String[] = { { F|O, "GraphicsFontTitle" , opt_general_graphics_font_title , "Helvetica" , "Font used in the graphic window for titles" }, - { F|S, "OptionsFileName" , opt_general_options_filename , ".gmsh-options" , + { F|S, "OptionsFileName" , opt_general_options_filename , +#if defined(WIN32) + ".gmsh-options" , +#else + "gmsh-options" , +#endif "Option file created with `Tools->Options->Save'; automatically read on startup" }, { F|S, "RecentFile0", opt_general_recent_file0 , "untitled.geo" , @@ -73,7 +83,12 @@ StringXString GeneralOptions_String[] = { { F|S, "RecentFile4", opt_general_recent_file4 , "untitled.geo" , "5th most recent opened file"}, - { 0, "SessionFileName" , opt_general_session_filename , ".gmshrc" , + { 0, "SessionFileName" , opt_general_session_filename , +#if defined(WIN32) + ".gmshrc" , +#else + "gmshrc" , +#endif "Option file into which session specific information is saved; automatically " "read on startup" }, @@ -86,7 +101,12 @@ StringXString GeneralOptions_String[] = { "sensible-editor '%s'" , #endif "System command to launch a text editor" }, - { F|S, "TmpFileName" , opt_general_tmp_filename , ".gmsh-tmp" , + { F|S, "TmpFileName" , opt_general_tmp_filename , +#if defined(WIN32) + ".gmsh-tmp" , +#else + "gmsh-tmp" , +#endif "Temporary file used by the geometry module" }, { F|O, "WebBrowser" , opt_general_web_browser , -- GitLab