Skip to content

Commit

Permalink
Install globe.earth in QGIS_DATA_DIR/globe
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Jul 5, 2011
1 parent b2f62df commit b942557
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/plugins/globe/CMakeLists.txt
Expand Up @@ -66,3 +66,6 @@ TARGET_LINK_LIBRARIES(globeplugin
INSTALL(TARGETS globeplugin
RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
LIBRARY DESTINATION ${QGIS_PLUGIN_DIR})

INSTALL (FILES globe.earth
DESTINATION ${QGIS_DATA_DIR}/globe)
3 changes: 2 additions & 1 deletion src/plugins/globe/globe_plugin.cpp
Expand Up @@ -23,6 +23,7 @@
#include <qgisinterface.h>
#include <qgisgui.h>
#include <qgslogger.h>
#include <qgsapplication.h>
#include <qgsmapcanvas.h>

#include <QAction>
Expand Down Expand Up @@ -102,7 +103,7 @@ void GlobePlugin::run()

// read base layers from earth file
EarthFile earthFile;
if ( !earthFile.readXML( "/home/pi/devel/gis/qgis/src/plugins/globe/globe.earth" ) )
if ( !earthFile.readXML( QString("%1/%2").arg(QgsApplication::pkgDataPath()).arg("globe/globe.earth").toStdString() ) )
{
return;
}
Expand Down

0 comments on commit b942557

Please sign in to comment.