--- linuxsampler/trunk/src/db/InstrumentsDb.cpp 2007/12/31 10:17:51 1603 +++ linuxsampler/trunk/src/db/InstrumentsDb.cpp 2008/01/13 16:36:14 1642 @@ -128,6 +128,10 @@ if ( db != NULL) return db; if (DbFile.empty()) DbFile = CONFIG_DEFAULT_INSTRUMENTS_DB_LOCATION; + #if defined(__APPLE__) /* 20071224 Toshi Nagata */ + if (DbFile.find("~") == 0) + DbFile.replace(0, 1, getenv("HOME")); + #endif int rc = sqlite3_open(DbFile.c_str(), &db); if (rc) { sqlite3_close(db);