mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-07 20:23:24 +00:00
Make sure Subsurface will find Marble theme when installed on Linux
We need the marble data to go into a subdirectory of /usr/share/subsurface and we need to search for both data and marbledata when trying to find the theme. Fixes #310 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
766b6b3e52
commit
d936c55a01
2 changed files with 7 additions and 3 deletions
|
@ -38,9 +38,13 @@ GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0)
|
||||||
foundGoogleMap = true;
|
foundGoogleMap = true;
|
||||||
if (!foundGoogleMap) {
|
if (!foundGoogleMap) {
|
||||||
subsurfaceDataPath = getSubsurfaceDataPath("marbledata");
|
subsurfaceDataPath = getSubsurfaceDataPath("marbledata");
|
||||||
qDebug() << subsurfaceDataPath;
|
if (subsurfaceDataPath != "") {
|
||||||
if (subsurfaceDataPath != "")
|
|
||||||
MarbleDirs::setMarbleDataPath(subsurfaceDataPath);
|
MarbleDirs::setMarbleDataPath(subsurfaceDataPath);
|
||||||
|
} else {
|
||||||
|
subsurfaceDataPath = getSubsurfaceDataPath("data");
|
||||||
|
if (subsurfaceDataPath != "")
|
||||||
|
MarbleDirs::setMarbleDataPath(subsurfaceDataPath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
messageWidget = new KMessageWidget(this);
|
messageWidget = new KMessageWidget(this);
|
||||||
messageWidget->setCloseButtonVisible(false);
|
messageWidget->setCloseButtonVisible(false);
|
||||||
|
|
|
@ -141,7 +141,7 @@ XSLTDIR = $(DATADIR)/subsurface
|
||||||
icon.files = $$ICON
|
icon.files = $$ICON
|
||||||
|
|
||||||
xslt.path = /$(XSLTDIR)
|
xslt.path = /$(XSLTDIR)
|
||||||
marbledir.path = /$(DATADIR)/subsurface
|
marbledir.path = /$(DATADIR)/subsurface/data
|
||||||
doc.path = /$(DOCDIR)
|
doc.path = /$(DOCDIR)
|
||||||
|
|
||||||
doc.CONFIG += no_check_exist
|
doc.CONFIG += no_check_exist
|
||||||
|
|
Loading…
Add table
Reference in a new issue