--- linuxsampler/trunk/src/db/InstrumentsDb.cpp 2007/09/17 23:15:25 1353 +++ linuxsampler/trunk/src/db/InstrumentsDb.cpp 2007/10/01 13:38:37 1364 @@ -127,7 +127,7 @@ sqlite3* InstrumentsDb::GetDb() { if ( db != NULL) return db; - if (DbFile.empty()) DbFile = "/var/lib/linuxsampler/instruments.db"; + if (DbFile.empty()) DbFile = CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION; int rc = sqlite3_open(DbFile.c_str(), &db); if (rc) { sqlite3_close(db); @@ -1630,7 +1630,7 @@ db = NULL; } - if (DbFile.empty()) DbFile = "/var/lib/linuxsampler/instruments.db"; + if (DbFile.empty()) DbFile = CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION; String bkp = DbFile + ".bkp"; remove(bkp.c_str()); if (rename(DbFile.c_str(), bkp.c_str()) && errno != ENOENT) {