From: Joao Matos Date: Tue, 12 Jan 2016 17:40:46 +0000 (+0000) Subject: Revert "Apple has introduced the System Integrety Protection in OS X 10.11. This... X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=18f49fd0ce564f716359ad27efd1b9b25b893522;p=mono.git Revert "Apple has introduced the System Integrety Protection in OS X 10.11. This prevents writes to /usr amongst other paths. /usr/local is still writable though." This reverts commit b723c89628187ab138334c108e16d62bc9530d6e. @migueldeicaza thinks this is the wrong approach, reverting until we figure out the right way to go about this. --- diff --git a/mcs/class/corlib/System/Environment.cs b/mcs/class/corlib/System/Environment.cs index a930e5355ad..99e35c2fe7c 100644 --- a/mcs/class/corlib/System/Environment.cs +++ b/mcs/class/corlib/System/Environment.cs @@ -736,10 +736,6 @@ namespace System { return String.Empty; // This is where data common to all users goes case SpecialFolder.CommonApplicationData: - Version v = CreateVersionFromString (GetOSVersionString ()); - if (Platform == PlatformID.MacOSX && v >= new Version(15, 0)) { - return "/usr/local/share"; - } return "/usr/share"; default: throw new ArgumentException ("Invalid SpecialFolder");