1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +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 { unix:!macx {
isEmpty(PREFIX):PREFIX = /usr/local isEmpty(PREFIX):PREFIX = /usr/local
lessThan(QT_MAJOR_VERSION, 5) {DEFINES += PREFIX=\\\"$$PREFIX\\\"}
maps.files = pkg/maps/* maps.files = pkg/maps/*
maps.path = $$PREFIX/share/gpxsee/maps maps.path = $$PREFIX/share/gpxsee/maps

View File

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