Skip to content
Permalink
Browse files

use configured QGIS_DATA_SUBDIR on OSX

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10320 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
kyngchaos
kyngchaos committed Mar 20, 2009
1 parent ddf8253 commit 87469544ee23aeca79226315951cbd8c613de2de
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/helpviewer/main.cpp
@@ -22,6 +22,7 @@
#include "qgshelpviewer.h"
#include "qgsapplication.h"
#include "qgslogger.h"
#include "qgsconfig.h"

int main( int argc, char ** argv )
{
@@ -39,9 +40,9 @@ int main( int argc, char ** argv )
{
context = argv[1];
}
#ifdef Q_WS_MAC
#ifdef Q_WS_MACX
// If we're on Mac, we have the resource library way above us...
a.setPkgDataPath( QgsApplication::prefixPath() + "/../../../../share/qgis" );
a.setPkgDataPath( QgsApplication::prefixPath() + "/../../../../" + QString( QGIS_DATA_SUBDIR ) );
#endif

QString i18nPath = QgsApplication::i18nPath();

0 comments on commit 8746954

Please sign in to comment.
You can’t perform that action at this time.