Skip to content
Permalink
Browse files

Install globe.earth in QGIS_DATA_DIR/globe

  • Loading branch information
pka committed Nov 1, 2010
1 parent b2f62df commit b942557f7702839fc86945d6b6680778da365cf7
Showing with 5 additions and 1 deletion.
  1. +3 −0 src/plugins/globe/CMakeLists.txt
  2. +2 −1 src/plugins/globe/globe_plugin.cpp
@@ -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)
@@ -23,6 +23,7 @@
#include <qgisinterface.h>
#include <qgisgui.h>
#include <qgslogger.h>
#include <qgsapplication.h>
#include <qgsmapcanvas.h>

#include <QAction>
@@ -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;
}

0 comments on commit b942557

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