[Monodevelop-patches-list] r893 - trunk/MonoDevelop/src/Libraries/MonoDevelop.Core/Services
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Feb 13 22:39:18 EST 2004
Author: tberman
Date: 2004-02-13 22:39:18 -0500 (Fri, 13 Feb 2004)
New Revision: 893
Modified:
trunk/MonoDevelop/src/Libraries/MonoDevelop.Core/Services/PropertyService.cs
Log:
FD compliance can suck a fat one, but we should follow it...
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Core/Services/PropertyService.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Core/Services/PropertyService.cs 2004-02-14 03:18:10 UTC (rev 892)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Core/Services/PropertyService.cs 2004-02-14 03:39:18 UTC (rev 893)
@@ -41,12 +41,16 @@
Path.DirectorySeparatorChar + ".." +
Path.DirectorySeparatorChar + "data";
}
+
+ configDirectory = Environment.GetEnvironmentVariable ("XDG_CONFIG_HOME");
+ if (configDirectory == null || configDirectory == "")
+ configDirectory = System.IO.Path.Combine (Environment.GetEnvironmentVariable ("HOME"), ".config");
+
+ configDirectory = System.IO.Path.Combine (configDirectory, "MonoDevelop");
+ configDirectory += System.IO.Path.DirectorySeparatorChar;
}
-
-
- readonly static string configDirectory = System.Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
- Path.DirectorySeparatorChar + ".MonoDevelop" +
- Path.DirectorySeparatorChar;
+
+ static string configDirectory;
/// <summary>
/// returns the path of the default application configuration directory
/// </summary>
More information about the Monodevelop-patches-list
mailing list