Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4
gpsbabel
0003-gpsbabel-1.7.0-gmapbase.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-gpsbabel-1.7.0-gmapbase.patch of Package gpsbabel
diff --git a/gui/map.cc b/gui/map.cc index a55c752e..d8656c97 100644 --- a/gui/map.cc +++ b/gui/map.cc @@ -44,6 +44,10 @@ #include <vector> #include "appname.h" +#ifndef PKGDATADIR +#define PKGDATADIR "/usr/share/gpsbabel" +#endif + using std::string; using std::vector; @@ -90,7 +94,8 @@ Map::Map(QWidget* parent, connect(mclicker, SIGNAL(logTime(QString)), this, SLOT(logTime(QString))); #endif - QString baseFile = QApplication::applicationDirPath() + "/gmapbase.html"; + QString baseFile = PKGDATADIR; + baseFile += "/gmapbase.html"; if (!QFile(baseFile).exists()) { QMessageBox::critical(nullptr, appName, tr("Missing \"gmapbase.html\" file. Check installation"));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor