mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 02:55:18 -04:00
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:
parent
6b7a6e2313
commit
d4a36ed38b
4 changed files with 8 additions and 9 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue