1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Use a propper path defined by the prefix for resources in QT4 builds

This commit is contained in:
Martin Tůma 2019-03-21 23:45:48 +01:00
parent 5b83f1b86b
commit d0438b3ee8
2 changed files with 2 additions and 1 deletions

View File

@ -362,6 +362,7 @@ win32 {
unix:!macx {
isEmpty(PREFIX):PREFIX = /usr/local
lessThan(QT_MAJOR_VERSION, 5) {DEFINES += PREFIX=\\\"$$PREFIX\\\"}
maps.files = pkg/maps/*
maps.path = $$PREFIX/share/gpxsee/maps

View File

@ -31,7 +31,7 @@
#else
#define USER_DIR QDir::homePath() + QString("/.local/share/") \
+ qApp->applicationName()
#define GLOBAL_DIR QString("/usr/share/") + qApp->applicationName()
#define GLOBAL_DIR QString(PREFIX "/share/") + qApp->applicationName()
#endif
static QString dir(const QString &dirName, bool writable = false)