45430d7206c7eed9afe0fd1cc7ebe4c2466f1621
braney
  Fri Oct 22 13:03:51 2010 -0700
add config variable to put trix file somewhere else
diff --git src/hg/lib/searchTracks.c src/hg/lib/searchTracks.c
index bc3705a..46e0532 100644
--- src/hg/lib/searchTracks.c
+++ src/hg/lib/searchTracks.c
@@ -4,12 +4,14 @@
 #include "hdb.h"
 #include "hgConfig.h"
 #include "trix.h"
+#include "subText.h"
 
 void getSearchTrixFile(char *database, char *buf, int len)
 // Fill-in the name of the track search trix file
 {
-char *fileName = cfgOptionDefault("browser.trixFile", "trackDb.ix");
-safef(buf, len, "/gbdb/%s/%s", database,fileName);
+char *trixPath = cfgOptionDefault("browser.trixPath", "/gbdb/$db/trackDb.ix");
+struct subText *subList = subTextNew("$db", database);
+subTextStatic(subList, trixPath, buf, len);
 }
 
 boolean isSearchTracksSupported(char *database)