[tomboy/xdg-migration2: 8/16] Add NativeApp.PreOneDotZeroNoteDirectory.



commit 4b1d0de344162f7baa2ddc6605cda68175b549f1
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Sat Aug 22 21:46:45 2009 -0700

    Add NativeApp.PreOneDotZeroNoteDirectory.

 Tomboy/GnomeApplication.cs  |    7 +++++++
 Tomboy/NativeApplication.cs |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/Tomboy/GnomeApplication.cs b/Tomboy/GnomeApplication.cs
index 9e218bb..c5c7666 100644
--- a/Tomboy/GnomeApplication.cs
+++ b/Tomboy/GnomeApplication.cs
@@ -180,5 +180,12 @@ namespace Tomboy
 		public string CacheDirectory {
 			get { return cacheDir; }
 		}
+		
+		public string PreOneDotZeroNoteDirectory {
+			get {
+				return Path.Combine (Environment.GetEnvironmentVariable ("HOME"),
+				                     ".tomboy");
+			}
+		}
 	}
 }
diff --git a/Tomboy/NativeApplication.cs b/Tomboy/NativeApplication.cs
index 94d1845..9eff284 100644
--- a/Tomboy/NativeApplication.cs
+++ b/Tomboy/NativeApplication.cs
@@ -17,6 +17,8 @@ namespace Tomboy
 
 		void Exit (int exitcode);
 		void StartMainLoop ();
+		
+		string PreOneDotZeroNoteDirectory { get; }
 
 		string CacheDirectory { get; }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]