Merge pull request #358 from bjh21/bjh21-extra-tests
[jackhill/mal.git] / cs / getline.cs
index b6dcf07..c1d5068 100644 (file)
@@ -895,17 +895,18 @@ namespace Mono.Terminal {
                                        throw new ArgumentException ("size");
 
                                if (app != null){
-                                       string dir = Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData);
+                                       string dir = Environment.GetFolderPath (Environment.SpecialFolder.Personal);
                                        //Console.WriteLine (dir);
-                                       if (!Directory.Exists (dir)){
-                                               try {
-                                                       Directory.CreateDirectory (dir);
-                                               } catch {
-                                                       app = null;
-                                               }
-                                       }
-                                       if (app != null)
-                                               histfile = Path.Combine (dir, app) + ".history";
+//                                     if (!Directory.Exists (dir)){
+//                                             try {
+//                                                     Directory.CreateDirectory (dir);
+//                                             } catch {
+//                                                     app = null;
+//                                             }
+//                                     }
+//                                     if (app != null)
+//                                             histfile = Path.Combine (dir, app) + ".history";
+                                       histfile = Path.Combine (dir, ".mal-history");
                                }
                                
                                history = new string [size];