Skip to content

Commit

Permalink
Fixed search paths for application data
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6695 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Feb 25, 2007
1 parent e6c21a3 commit fde6929
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/qgsapplication.cpp
Expand Up @@ -15,6 +15,7 @@
/* $Id$ */

#include "qgsapplication.h"
#include "qgslogger.h"
#include <QFile>
#include <QDir>

Expand Down Expand Up @@ -50,9 +51,10 @@ QgsApplication::QgsApplication(int & argc, char ** argv, bool GUIenabled)
// and then falling back to the paths set in the make process
if (QFile::exists(applicationDirPath()+"/../share/qgis/images/icons/qgis-icon.png"))
{
mPrefixPath = applicationDirPath();
mPluginPath = mPrefixPath + QString("/../lib/qgis");
mPkgDataPath = mPrefixPath + QString("/../share/qgis");
QgsDebugMsg("Using data/plugin relative to " + applicationDirPath() + "/..");
mPrefixPath = applicationDirPath() + QString("/..");
mPluginPath = mPrefixPath + QString("/lib/qgis");
mPkgDataPath = mPrefixPath + QString("/share/qgis");
}
else //fall back to make specified paths
{
Expand Down

0 comments on commit fde6929

Please sign in to comment.