=== modified file 'CMakeModules/config.h.cmake'
--- CMakeModules/config.h.cmake	2015-02-20 13:46:12 +0000
+++ CMakeModules/config.h.cmake	2015-02-22 14:43:46 +0000
@@ -64,7 +64,7 @@
 /// The install prefix used for KiCad's libraries.
 /// These paths are only intended to be reasonable default values that work if
 /// the user installs KiCad in the default path for a given platform.
-#if defined( APPLE )
+#if defined( __APPLE__ )
 #define KICAD_DATA_PATH                 "/Library/Application Support/kicad"
 #else
 #define KICAD_DATA_PATH                 "@CMAKE_INSTALL_PREFIX@/@KICAD_DATA@"

=== modified file 'common/pcbcommon.cpp'
--- common/pcbcommon.cpp	2015-02-18 19:27:00 +0000
+++ common/pcbcommon.cpp	2015-02-22 13:03:06 +0000
@@ -35,137 +35,6 @@
 #include <class_board.h>
 #include <3d_viewer.h>
 
-/**
- * attempts to set the environment variable given by aKiSys3Dmod to a valid path.
- * (typically "KISYS3DMOD" )
- * If the environment variable is already set, then it left as is to respect
- * the wishes of the user.
- *
- * The path is determined by attempting to find the path modules/packages3d
- * files in kicad tree.
- * This may or may not be the best path but it provides the best solution for
- * backwards compatibility with the previous 3D shapes search path implementation.
- *
- * @note This must be called after #SetBinDir() is called at least on Windows.
- * Otherwise, the kicad path is not known (Windows specific)
- *
- * @param aKiSys3Dmod = the value of environment variable, typically "KISYS3DMOD"
- * @param aProcess = the current process
- * @return false if the aKiSys3Dmod path is not valid.
- */
-bool Set3DShapesDefaultPath( const wxString& aKiSys3Dmod, const PGM_BASE* aProcess )
-{
-    wxString    path;
-
-    // Set the KISYS3DMOD environment variable for the current process,
-    // if it is not already defined in the user's environment and valid.
-    if( wxGetEnv( aKiSys3Dmod, &path ) && wxFileName::DirExists( path ) )
-        return true;
-
-#if 1
-    // Try to find a valid path is standard KiCad paths
-    SEARCH_STACK&   search = Kiface().KifaceSearch();
-    path = search.FindValidPath( LIB3D_FOLDER );
-
-    if( !path.IsEmpty() )
-    {
-        wxSetEnv( aKiSys3Dmod, path );
-        return true;
-    }
-#endif
-
-    // Attempt to determine where the 3D shape libraries were installed using the
-    // legacy path:
-    // on Unix: /usr/local/kicad/share/modules/packages3d
-    // oor /usr/local/kicad/share/kicad/modules/packages3d
-    // or  /usr/share/kicad/modules/packages3d
-    // On Windows: bin../share/modules/packages3d
-    wxString relpath( wxT( "modules/" ) );
-    relpath += LIB3D_FOLDER;
-
-// Apple MacOSx
-#ifdef __WXMAC__
-    path = wxT("/Library/Application Support/kicad/modules/packages3d/");
-
-    if( wxFileName::DirExists( path ) )
-    {
-        wxSetEnv( aKiSys3Dmod, path );
-        return true;
-    }
-
-    path = wxString( wxGetenv( wxT( "HOME" ) ) ) + wxT("/Library/Application Support/kicad/modules/packages3d/");
-
-    if( wxFileName::DirExists( path ) )
-    {
-        wxSetEnv( aKiSys3Dmod, path );
-        return true;
-    }
-
-#elif defined(__UNIX__)     // Linux and non-Apple Unix
-    // Try the home directory:
-    path.Empty();
-    wxGetEnv( wxT("HOME"), &path );
-    path += wxT("/kicad/share/") + relpath;
-
-    if( wxFileName::DirExists( path ) )
-    {
-        wxSetEnv( aKiSys3Dmod, path );
-        return true;
-    }
-
-    path.Empty();
-    wxGetEnv( wxT("HOME"), &path );
-    path += wxT("/kicad/share/kicad/") + relpath;
-
-    if( wxFileName::DirExists( path ) )
-    {
-        wxSetEnv( aKiSys3Dmod, path );
-        return true;
-    }
-
-    // Try the standard install path:
-    path = wxT("/usr/local/kicad/share/") + relpath;
-
-    if( wxFileName::DirExists( path ) )
-    {
-        wxSetEnv( aKiSys3Dmod, path );
-        return true;
-    }
-
-    // Try the new standard install path:
-    path = wxT("/usr/local/kicad/share/kicad/") + relpath;
-
-    if( wxFileName::DirExists( path ) )
-    {
-        wxSetEnv( aKiSys3Dmod, path );
-        return true;
-    }
-    // Try the official distrib standard install path:
-    path = wxT("/usr/share/kicad/") + relpath;
-
-    if( wxFileName::DirExists( path ) )
-    {
-        wxSetEnv( aKiSys3Dmod, path );
-        return true;
-    }
-
-#else   // Windows
-    // On Windows, the install path is given by the path of executables
-    wxFileName fn;
-    fn.AssignDir( aProcess->GetExecutablePath() );
-    fn.RemoveLastDir();
-    path = fn.GetPathWithSep() + wxT("share/") + relpath;
-
-    if( wxFileName::DirExists( path ) )
-    {
-        wxSetEnv( aKiSys3Dmod, path );
-        return true;
-    }
-#endif
-
-    return false;
-}
-
 
 wxString LayerMaskDescribe( const BOARD *aBoard, LSET aMask )
 {

=== modified file 'cvpcb/cvpcb.cpp'
--- cvpcb/cvpcb.cpp	2015-02-18 19:27:00 +0000
+++ cvpcb/cvpcb.cpp	2015-02-22 13:04:21 +0000
@@ -181,11 +181,6 @@
 
     start_common( aCtlBits );
 
-    // Set 3D shape path (environment variable KISYS3DMOD (if not defined or valid)
-    // Currently, called here, but could be moved ( OpenProjectFiles() ? )
-    // if KISYS3DMOD is defined in a project config file
-    Set3DShapesDefaultPath( KISYS3DMOD, aProgram );
-
     /*  Now that there are no *.mod files in the standard library, this function
         has no utility.  User should simply set the variable manually.
         Looking for *.mod files which do not exist is fruitless.

=== modified file 'include/pcbcommon.h'
--- include/pcbcommon.h	2014-08-24 07:05:07 +0000
+++ include/pcbcommon.h	2015-02-22 13:02:30 +0000
@@ -30,26 +30,6 @@
 
 class PGM_BASE;
 
-/**
- * attempts to set (when not set or valid) the environment variable given by aKiSys3Dmod
- * (typically "KISYS3DMOD" ) to a valid path.
- * If the environment variable is already set, then it left as is to respect
- * the wishes of the user.
- *
- * The path is determined by attempting to find the path modules/packages3d
- * files in kicad tree.
- * This may or may not be the best path but it provides the best solution for
- * backwards compatibility with the previous 3D shapes search path implementation.
- *
- * @note This must be called after #SetBinDir() is called at least on Windows.
- * Otherwise, the kicad path is not known (Windows specific)
- *
- * @param aKiSys3Dmod = the value of environment variable, typically "KISYS3DMOD"
- * @param aProcess = the current process
- * @return false if the aKiSys3Dmod path is not valid.
- */
-bool Set3DShapesDefaultPath( const wxString& aKiSys3Dmod, const PGM_BASE* aProcess );
-
 
 /// Utility for comma separated lists
 inline void AccumulateDescription( wxString &aDesc, const wxString &aItem )

=== modified file 'kicad/Info.plist'
--- kicad/Info.plist	2014-10-02 23:03:52 +0000
+++ kicad/Info.plist	2015-02-22 10:06:33 +0000
@@ -30,9 +30,5 @@
     <key>LSRequiresCarbon</key>	                    <true/>
     <key>NSHumanReadableCopyright</key>	            <string></string>
     <key>NSHighResolutionCapable</key>              <string>True</string>
-    <key>LSEnvironment</key>
-        <dict>
-            <key>KIGITHUB</key>     <string>https://github.com/kicad</string>
-        </dict>
 </dict>
 </plist>

=== modified file 'pcbnew/Info.plist'
--- pcbnew/Info.plist	2015-02-18 19:27:00 +0000
+++ pcbnew/Info.plist	2015-02-22 10:06:21 +0000
@@ -33,9 +33,5 @@
     <key>LSRequiresCarbon</key>                 <true/>
     <key>NSHumanReadableCopyright</key>         <string></string>
     <key>NSHighResolutionCapable</key>          <string>True</string>
-    <key>LSEnvironment</key>
-        <dict>
-            <key>KIGITHUB</key>     <string>https://github.com/kicad</string>
-        </dict>
 </dict>
 </plist>

=== modified file 'pcbnew/dialogs/dialog_fp_lib_table.cpp'
--- pcbnew/dialogs/dialog_fp_lib_table.cpp	2015-02-18 19:27:00 +0000
+++ pcbnew/dialogs/dialog_fp_lib_table.cpp	2015-02-22 15:04:24 +0000
@@ -760,7 +760,6 @@
         unique.insert( FP_LIB_TABLE::GlobalPathEnvVariableName() );
         // This special environment variable is used to locate 3d shapes
         unique.insert( KISYS3DMOD );
-        unique.insert( FP_LIB_TABLE::GlobalPathEnvVariableName() );
 
         m_path_subs_grid->AppendRows( unique.size() );
 

=== modified file 'pcbnew/pcbnew.cpp'
--- pcbnew/pcbnew.cpp	2015-02-18 19:27:00 +0000
+++ pcbnew/pcbnew.cpp	2015-02-22 13:05:31 +0000
@@ -309,11 +309,6 @@
     // display the real hotkeys in menus or tool tips
     ReadHotkeyConfig( wxT( "PcbFrame" ), g_Board_Editor_Hokeys_Descr );
 
-    // Set 3D shape path (environment variable KISYS3DMOD) if not defined or valid
-    // Currently, called here, but could be moved ( OpenProjectFiles() ? )
-    // if KISYS3DMOD is defined in a project config file
-    Set3DShapesDefaultPath( KISYS3DMOD, aProgram );
-
     try
     {
         // The global table is not related to a specific project.  All projects

