File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -66,3 +66,6 @@ TARGET_LINK_LIBRARIES(globeplugin
66
66
INSTALL (TARGETS globeplugin
67
67
RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
68
68
LIBRARY DESTINATION ${QGIS_PLUGIN_DIR} )
69
+
70
+ INSTALL (FILES globe.earth
71
+ DESTINATION ${QGIS_DATA_DIR} /globe )
Original file line number Diff line number Diff line change 23
23
#include < qgisinterface.h>
24
24
#include < qgisgui.h>
25
25
#include < qgslogger.h>
26
+ #include < qgsapplication.h>
26
27
#include < qgsmapcanvas.h>
27
28
28
29
#include < QAction>
@@ -102,7 +103,7 @@ void GlobePlugin::run()
102
103
103
104
// read base layers from earth file
104
105
EarthFile earthFile;
105
- if ( !earthFile.readXML ( " /home/pi/devel/gis/qgis/src/plugins/ globe/globe.earth" ) )
106
+ if ( !earthFile.readXML ( QString ( " %1/%2 " ). arg ( QgsApplication::pkgDataPath ()). arg ( " globe/globe.earth" ). toStdString () ) )
106
107
{
107
108
return ;
108
109
}
You can’t perform that action at this time.
0 commit comments