Skip to content
Browse files
For Mac OS X, if the GDAL plugins are bundled with the application, s…
…et an environment variable to search the bundle before searching the GDAL prefix path hardcoded into the library.

git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Jul 10, 2006
1 parent 47a5086 commit ca51e255d0b57c0f7a32b5f6b9c799f4874514ea
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/gui/main.cpp
@@ -369,6 +369,14 @@ int main(int argc, char *argv[])

// If the GDAL plugins are bundled with the application and GDAL_DRIVER_PATH
// is not already defined, use the GDAL plugins in the application bundle.
QString gdalPlugins(QCoreApplication::applicationDirPath().append("/lib/gdalplugins"));
if (QFile::exists(gdalPlugins) && !getenv("GDAL_DRIVER_PATH"))
setenv("GDAL_DRIVER_PATH", gdalPlugins, 1);

// Check to see if qgis was started from the source directory.

0 comments on commit ca51e25

Please sign in to comment.