Skip to content

Commit cfc2f81

Browse files
author
kyngchaos
committedMar 20, 2009
use configured QGIS_DATA_SUBDIR on OSX
git-svn-id: http://svn.osgeo.org/qgis/trunk@10320 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent b2f57d4 commit cfc2f81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/helpviewer/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "qgshelpviewer.h"
2323
#include "qgsapplication.h"
2424
#include "qgslogger.h"
25+
#include "qgsconfig.h"
2526

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

4748
QString i18nPath = QgsApplication::i18nPath();

0 commit comments

Comments
 (0)
Please sign in to comment.