Make data and plugin directory configurable at compile time

e.g.:
$ qmake PREFIX=/usr/local
$ qmake LIB_DIR=/usr/lib64

A full recompile is necessary when changing the PREFIX!
This commit is contained in:
AsamK 2015-08-23 01:24:58 +02:00
parent 6b7a6e2313
commit d4a36ed38b
4 changed files with 8 additions and 9 deletions

View file

@ -70,11 +70,7 @@ SoundManager::SoundManager() : QObject()
void SoundManager::soundEvents(SoundEvents &events)
{
#ifdef WINDOWS_SYS
QDir baseDir = QDir(qApp->applicationDirPath() + "/sounds");
#else
QDir baseDir = QDir("/usr/share/RetroShare06/sounds");
#endif
QDir baseDir = QDir(QString::fromUtf8(RsAccounts::DataDirectory().c_str()) + "/sounds");
events.mDefaultPath = baseDir.absolutePath();